GNOME Bugzilla – Bug 753905
android emulator returns NULL for GL_SHADING_LANGUAGE_VERSION
Last modified: 2015-08-28 18:27:33 UTC
In android emulator, it just returns null for GL_SHADING_LANGUAGE_VERSION even if ES returns more than 2.0. For android newbie like me, the error message, "glGetString not defined or returned invalid value", is not sufficient to check what's going on. I think it's better to provide separated information.
Created attachment 309785 [details] [review] separated error message
Review of attachment 309785 [details] [review]: ::: gst-libs/gst/gl/gstglcontext.c @@ +1127,3 @@ + if (!gl->GetString (GL_SHADING_LANGUAGE_VERSION)) { + g_set_error (error, GST_GL_CONTEXT_ERROR, GST_GL_CONTEXT_ERROR_FAILED, + "GL_SHADING_LANGUAGE_VERSION must not be null"); Maybe make this "No GL shader support available" or something like that?
Created attachment 309791 [details] [review] No GL shader support available Yes, your text is more understandable.
Thanks! commit 85834d6bbc79fe7b88dbff388746b2ff80b1ad75 Author: Justin Kim <justin.kim@collabora.com> Date: Fri Aug 21 14:07:32 2015 +0900 glcontext: add specific error message when missing GL_SHADING_LANGUAGE_VERSION GL_SHADING_LANGUAGE_VERSION was introduced since ES 2.0, but in some android emulator doesn't support this feature. To prevent confusion for developer, the error message need to be more clear. https://bugzilla.gnome.org/show_bug.cgi?id=753905