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
14521a89cb
commit
3e3b573503
@ -804,7 +804,7 @@ gst_gl_context_create_thread (GstGLContext * context)
|
||||
if (gl->GetIntegerv && gl->GetStringi)
|
||||
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,
|
||||
ext_g_str->str);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user