glshader: fix default external-oes shaders
authorMatthew Waters <matthew@centricular.com>
Tue, 7 May 2019 08:36:01 +0000 (18:36 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 10:00:16 +0000 (11:00 +0100)
commit0a9807a01491fbb662559e1bc146a8a7a4cf6172
tree09e81c98abdaf670076206cbbffcc078ff504312
parentddd0aff31e162fbc3c01869d71a6498eb17c441a
glshader: fix default external-oes shaders

In glsl, #extension directives need to before other non-preprocesser
directives.  We were placing the precision qualifier before that.  Fix
by moving the #extension to the first line in the shader.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/601
gst-libs/gst/gl/gstglshaderstrings.c