summaryrefslogtreecommitdiff
path: root/gsk/gskglrenderer.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-08-04 19:14:51 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-10-18 11:49:12 +0100
commit32d45b0081859fecf94f3766a5389c0105023f58 (patch)
treee8b11c35e56fbf7f61b932537341bd554f6ee569 /gsk/gskglrenderer.c
parenta0b2b3745f697b91d9e91c3f10b0b3b4627a33d8 (diff)
downloadgtk+-32d45b0081859fecf94f3766a5389c0105023f58.tar.gz
gsk: Pass the appropriate value for the n_quads argument
Instead of passing the size of the buffer, we should pass the number of quads; we know what the size of a single quad structure is, so we can do the multiplication internally when creating the VAO. This allows us to print the quads for debugging purposes.
Diffstat (limited to 'gsk/gskglrenderer.c')
-rw-r--r--gsk/gskglrenderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskglrenderer.c b/gsk/gskglrenderer.c
index 1e3dcd2e3d..7d16ee1f12 100644
--- a/gsk/gskglrenderer.c
+++ b/gsk/gskglrenderer.c
@@ -716,7 +716,7 @@ gsk_gl_renderer_add_render_item (GskGLRenderer *self,
gsk_gl_driver_create_vao_for_quad (self->gl_driver,
item.render_data.position_location,
item.render_data.uv_location,
- sizeof (GskQuadVertex) * N_VERTICES,
+ N_VERTICES,
vertex_data);
}