GNOME Bugzilla – Bug 765517
glcolorconvert: fix Fragment shader compile error in GLES3.0 or higher
Last modified: 2016-04-25 07:56:55 UTC
1. glcolorconvert fragment shader compile error when using OpenGL ES 3.0 or higher. When compile shader (for example RGB->PlanerYUV) on OpenGL ES 3.0 or higher,I meet an error like bellow: (39:0) : error : function: 'texture2D' does not have a corresponding declaration (55:0) : error : reserved keyword : 'sample' (55:0) : error : syntax error at 'sample' In OpenGL ES Shading Language version 3.0 or higher, function "texture2D" is changed to "texture" and 'sample' has become a reserved keyword for future use which will also result in compile error. 2. By the way, when build glcolorconvert for OpenGL ES, I meet another build error. Form function “gst_gl_shader_bind_frag_data_location”, gl->BindFragDataLocation is not an OpenGL ES API but Desktop GL API. We need add compile macro here.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 765266 ***
Can you open a bug with more details about the BindFragDataLocation problem? Everything compiles fine here on various platforms, even if only GLES is available.
(In reply to Sebastian Dröge (slomo) from comment #2) > Can you open a bug with more details about the BindFragDataLocation problem? > Everything compiles fine here on various platforms, even if only GLES is > available. Ok, Thanks for your information.
(In reply to Sebastian Dröge (slomo) from comment #2) > Can you open a bug with more details about the BindFragDataLocation problem? > Everything compiles fine here on various platforms, even if only GLES is > available. Hi Sebastian, I think I have fix the BindFragDataLocation problem, because I missed a patch when I cherry pick commit to my local branch. So no need open a new bug. Thanks a lot.