gltransformation: fix DrawElements call for element array buffers

https://bugzilla.gnome.org/show_bug.cgi?id=749734
This commit is contained in:
Matthew Waters 2015-05-25 17:27:58 +10:00 committed by Tim-Philipp Müller
parent eba6f6b80f
commit 1d796508e8

View file

@ -590,7 +590,7 @@ gst_gl_transformation_callback (gpointer stuff)
_bind_buffer (transformation); _bind_buffer (transformation);
} }
gl->DrawElements (GL_TRIANGLE_STRIP, 5, GL_UNSIGNED_SHORT, indices); gl->DrawElements (GL_TRIANGLE_STRIP, 5, GL_UNSIGNED_SHORT, 0);
if (gl->GenVertexArrays) if (gl->GenVertexArrays)
gl->BindVertexArray (0); gl->BindVertexArray (0);