mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
bdbb3142ec
commit
9980b11058
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue