summaryrefslogtreecommitdiff
path: root/ext/gtk
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2019-01-16 14:11:44 +0200
committerSebastian Dröge <sebastian@centricular.com>2019-01-16 14:11:44 +0200
commitdb0eca886f13933272ef21128b59d26dc7f7c85f (patch)
treee32256818011d6402f64af1265df9dcca4b3a082 /ext/gtk
parent6700c16989bf97dad6ea1a61fb632f99d54ed93a (diff)
downloadgstreamer-plugins-good-db0eca886f13933272ef21128b59d26dc7f7c85f.tar.gz
gtk/gl: Only unbind buffers/vertex attrib arrays if we can't directly bind the vertex array to 0
Binding the vertex array to 0 will unbind everything else already. In the previous order older versions of the Intel GL driver caused errors to be printed for every single call when disabling the vertex attrib arrays after binding the vertex array to 0.
Diffstat (limited to 'ext/gtk')
-rw-r--r--ext/gtk/gtkgstglwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gtk/gtkgstglwidget.c b/ext/gtk/gtkgstglwidget.c
index 2a8beab20..8381c21ce 100644
--- a/ext/gtk/gtkgstglwidget.c
+++ b/ext/gtk/gtkgstglwidget.c
@@ -200,7 +200,8 @@ _redraw_texture (GtkGstGLWidget * gst_widget, guint tex)
if (gl->BindVertexArray)
gl->BindVertexArray (0);
- gtk_gst_gl_widget_unbind_buffer (gst_widget);
+ else
+ gtk_gst_gl_widget_unbind_buffer (gst_widget);
gl->BindTexture (GL_TEXTURE_2D, 0);
}