From 1d796508e8597628049f799e8cd342d429a68799 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 25 May 2015 17:27:58 +1000 Subject: [PATCH] gltransformation: fix DrawElements call for element array buffers https://bugzilla.gnome.org/show_bug.cgi?id=749734 --- ext/gl/gstgltransformation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gl/gstgltransformation.c b/ext/gl/gstgltransformation.c index bf2f9ab2bb..42bdf268fb 100644 --- a/ext/gl/gstgltransformation.c +++ b/ext/gl/gstgltransformation.c @@ -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);