glshader: prevent from getting attributes without vertex shader
authorNeos3452 <neos3452@gmail.com>
Fri, 13 Mar 2015 17:04:17 +0000 (17:04 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:57 +0000 (19:31 +0000)
commit7d833511724c0a8fd7152591057833a287ea32a0
treec34ed580a233b4718c8cfdc02cd087d1c00db372
parentbf0440f97bea8e23bcfcc8a2b1381ffe6205bd00
glshader: prevent from getting attributes without vertex shader

It doesn't make sense to query for vertex attributes without a vertex
shader. Moreover this is causing a crash on OSX.

https://bugzilla.gnome.org/show_bug.cgi?id=746168
gst-libs/gst/gl/gstglshader.c