From 9980b1105887ce02b9765383df0ea420ac3fe8e2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Jan 2017 11:33:58 +0100 Subject: vo_opengl: egl_helpers: fix variable name It was basically inverted. Not sure how this even happened. Hopefully it's more an "I don't know what I was doing" instead of an "I don't know what I am doing" case. --- video/out/opengl/egl_helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/opengl/egl_helpers.c b/video/out/opengl/egl_helpers.c index 05f594f4e0..7f01d93307 100644 --- a/video/out/opengl/egl_helpers.c +++ b/video/out/opengl/egl_helpers.c @@ -166,16 +166,16 @@ bool mpegl_create_context_opts(EGLDisplay display, struct mp_log *log, bool probing = opts->vo_flags & VOFLAG_PROBING; int msgl = probing ? MSGL_V : MSGL_FATAL; - bool try_desktop = !(opts->vo_flags & VOFLAG_NO_GLES); + bool try_gles = !(opts->vo_flags & VOFLAG_NO_GLES); if (!(opts->vo_flags & VOFLAG_GLES)) { // Desktop OpenGL - if (create_context(display, log, try_desktop | probing, 0, opts, + if (create_context(display, log, try_gles | probing, 0, opts, out_context, out_config)) return true; } - if (try_desktop) { + if (try_gles) { // ES 3.x if (create_context(display, log, true, 3, opts, out_context, out_config)) -- cgit v1.2.3