mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
gl: fix detection of extensions with GL versions < 3
Mesa, for example returns valid pointers for glGetIntegerv and glGetStringi even if the gl version is less than that required for both those functions to supposedly exist. https://bugzilla.gnome.org/show_bug.cgi?id=727324
This commit is contained in:
parent
73862d5096
commit
14e993e745
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ gst_gl_context_create_thread (GstGLContext * context)
|
|||
goto failure;
|
||||
|
||||
/* GL core contexts and GLES3 */
|
||||
if (gl->GetIntegerv && gl->GetStringi)
|
||||
if (gl->GetIntegerv && gl->GetStringi && gl_major >= 3)
|
||||
ext_g_str = _build_extension_string (context);
|
||||
|
||||
if (ext_g_str && ext_g_str->len) {
|
||||
|
|
Loading…
Reference in a new issue