gl: fix crash if _build_extension_string is not called
On GLES2 then (gl->GetIntegerv && gl->GetStringi) is false regression introduced by cc6df204e2f58fffda5cbe90f3450aeba95889c4 https://bugzilla.gnome.org/show_bug.cgi?id=703343
This commit is contained in:
parent
e26e3371a5
commit
2893a70aa0
@ -804,7 +804,7 @@ gst_gl_context_create_thread (GstGLContext * context)
|
|||||||
if (gl->GetIntegerv && gl->GetStringi)
|
if (gl->GetIntegerv && gl->GetStringi)
|
||||||
ext_g_str = _build_extension_string (context);
|
ext_g_str = _build_extension_string (context);
|
||||||
|
|
||||||
if (ext_g_str->len) {
|
if (ext_g_str && ext_g_str->len) {
|
||||||
_gst_gl_feature_check_ext_functions (context, gl_major, gl_minor,
|
_gst_gl_feature_check_ext_functions (context, gl_major, gl_minor,
|
||||||
ext_g_str->str);
|
ext_g_str->str);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user