gl: Only unbind buffers/vertex attrib arrays if we can't directly bind the vertex...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 16 Jan 2019 12:09:18 +0000 (14:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Jan 2019 12:09:18 +0000 (14:09 +0200)
commitacc098a736949d465d7f77e5de94a75627209147
tree45544cd783509f8afa6b80143f0989f84d08895d
parent30b5d7892a9a2da5b1b90c359293906c230fc5f8
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.
12 files changed:
ext/gl/caopengllayersink.m
ext/gl/gltestsrc.c
ext/gl/gstglfiltercube.c
ext/gl/gstglimagesink.c
ext/gl/gstgloverlay.c
ext/gl/gstgltransformation.c
ext/gl/gstglvideomixer.c
gst-libs/gst/gl/gstglcolorconvert.c
gst-libs/gst/gl/gstglfilter.c
gst-libs/gst/gl/gstglviewconvert.c
tests/check/libs/gstglcontext.c
tests/check/libs/gstglupload.c