diff --git a/clutter/cogl/gl/cogl-texture.c b/clutter/cogl/gl/cogl-texture.c index b5866532d..7f266913e 100644 --- a/clutter/cogl/gl/cogl-texture.c +++ b/clutter/cogl/gl/cogl-texture.c @@ -2145,9 +2145,9 @@ _cogl_journal_flush (void) CoglJournalEntry *current_entry = prev_entry + 1; gsize stride; - /* Progress the vertex pointer */ + /* Progress the vertex pointer to the next quad */ stride = 2 + current_entry->n_layers * 2; - current_vertex_pointer += stride; + current_vertex_pointer += stride * 4; /* batch rectangles using the same textures */ if (current_entry->material == prev_entry->material && diff --git a/clutter/cogl/gles/cogl-texture.c b/clutter/cogl/gles/cogl-texture.c index 3bb622aa6..f0bfba43d 100644 --- a/clutter/cogl/gles/cogl-texture.c +++ b/clutter/cogl/gles/cogl-texture.c @@ -2258,9 +2258,9 @@ _cogl_journal_flush (void) CoglJournalEntry *current_entry = prev_entry + 1; gsize stride; - /* Progress the vertex pointer */ + /* Progress the vertex pointer to the next quad */ stride = 2 + current_entry->n_layers * 2; - current_vertex_pointer += stride; + current_vertex_pointer += stride * 4; /* batch rectangles using the same textures */ if (current_entry->material == prev_entry->material &&