summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2021-10-02 21:22:46 +0100
committerDudemanguy <random342@airmail.cc>2021-10-16 20:33:53 +0000
commit538fb6541e621fd6eb1c0fe42bb88520e8e45dda (patch)
tree9cdf85b6194fe0ee154ba975309e15658661e324 /video/out/opengl/common.h
parente3883512b119429004376cefff8a29043dbaff8d (diff)
downloadmpv-538fb6541e621fd6eb1c0fe42bb88520e8e45dda.tar.bz2
mpv-538fb6541e621fd6eb1c0fe42bb88520e8e45dda.tar.xz
video: opengl: rework and remove ra_gl_ctx_test_version()
The ra_gl_ctx_test_version() helper is quite clunky, in that it pushes a simple check too deep into the call chain. As such it makes it hard to reason, let alone have the GLX and EGL code paths symmetrical. Introduce a simple helper ra_gl_ctx_get_glesmode() which returns the current glesmode, so the platforms can clearly reason about should and should not be executed. v2: - mpgl_preferred_gl_versions -> mpgl_min_required_gl_versions - 320 -> 300 (in glx code path) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'video/out/opengl/common.h')
0 files changed, 0 insertions, 0 deletions