gltransformation: fix DrawElements call for element array buffers
authorMatthew Waters <matthew@centricular.com>
Mon, 25 May 2015 07:27:58 +0000 (17:27 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000 (19:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=749734

ext/gl/gstgltransformation.c

index bf2f9ab..42bdf26 100644 (file)
@@ -590,7 +590,7 @@ gst_gl_transformation_callback (gpointer stuff)
     _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)
     gl->BindVertexArray (0);