Commit 47d454df authored by Thomas Guillem's avatar Thomas Guillem

opengl: add extra check

parent 744ac6ec
......@@ -836,6 +836,13 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
const char *extensions = (const char *)vgl->vt.GetString(GL_EXTENSIONS);
if (!extensions)
msg_Err(gl, "glGetString returned NULL\n");
return NULL;
#if !defined(USE_OPENGL_ES2)
const unsigned char *ogl_version = vgl->vt.GetString(GL_VERSION);
bool supports_shaders = strverscmp((const char *)ogl_version, "2.0") >= 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment