mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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.
This commit is contained in:
parent
6700c16989
commit
db0eca886f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue