diff options
author | Matthew Waters <matthew@centricular.com> | 2015-03-13 17:41:17 +0000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2015-03-13 17:41:17 +0000 |
commit | a29a18cc3aa10ed4749d0be606e5ed090ddbf949 (patch) | |
tree | 44c03f373d8aabac6d1d48153419736a111d3c4e /ext/gl/gltestsrc.c | |
parent | 40a4530c5d1ddb7625ccc9ee6e95e5c044db29f7 (diff) | |
download | gstreamer-plugins-bad-a29a18cc3aa10ed4749d0be606e5ed090ddbf949.tar.gz |
glshader: attribute locations are -1 on error
Diffstat (limited to 'ext/gl/gltestsrc.c')
-rw-r--r-- | ext/gl/gltestsrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gl/gltestsrc.c b/ext/gl/gltestsrc.c index 525a959a6..d5e75aa1e 100644 --- a/ext/gl/gltestsrc.c +++ b/ext/gl/gltestsrc.c @@ -222,8 +222,8 @@ gst_gl_test_src_shader (GstGLTestSrc * v, GstBuffer * buffer, int w, int h) GLushort indices[] = { 0, 1, 2, 3, 0 }; - GLint attr_position_loc = 0; - GLint attr_uv_loc = 0; + GLint attr_position_loc = -1; + GLint attr_uv_loc = -1; if (gst_gl_context_get_gl_api (v->context)) { @@ -316,7 +316,7 @@ gst_gl_test_src_checkers (GstGLTestSrc * v, gint checker_width) GLushort indices[] = { 0, 1, 2, 3, 0 }; - GLint attr_position_loc = 0; + GLint attr_position_loc = -1; if (gst_gl_context_get_gl_api (v->context)) { |