summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-26 11:33:58 +0100
committerwm4 <wm4@nowhere>2017-01-26 11:33:58 +0100
commit9980b1105887ce02b9765383df0ea420ac3fe8e2 (patch)
treec8bac2a9741fe6d2290d28cc3a70e2d79371b2c1
parentbdbb3142ec4046f35265b8ca19c701b9b2f4fefa (diff)
downloadmpv-9980b1105887ce02b9765383df0ea420ac3fe8e2.tar.bz2
mpv-9980b1105887ce02b9765383df0ea420ac3fe8e2.tar.xz
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.
-rw-r--r--video/out/opengl/egl_helpers.c6
1 files changed, 3 insertions, 3 deletions
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))