summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2021-10-02 21:30:10 +0100
committerDudemanguy <random342@airmail.cc>2021-10-16 20:33:53 +0000
commit20e9c66fa935807ca5d11eedf82fbfd3db807c04 (patch)
treec93eb68eb322df5965e42bddcbc203527f5aaf5e /video/out/opengl/common.h
parent538fb6541e621fd6eb1c0fe42bb88520e8e45dda (diff)
downloadmpv-20e9c66fa935807ca5d11eedf82fbfd3db807c04.tar.bz2
mpv-20e9c66fa935807ca5d11eedf82fbfd3db807c04.tar.xz
egl_helpers: fixup the EGL_KHR_create_context-less codepath
With earlier commit f8e62d3d82 ("egl_helpers: fix create_context fallback behavior") we added a fallback for creating OpenGL context while EGL_KHR_create_context is missing. While it looked correct at first, it is missing the eglMakeCurrent() call after creating the EGL context. Thus calling glGetString() fails. Instead of doing that we can just remove some code - simply pass the CLIENT_VERSION 2, as attributes which is honoured by EGL regardless of the client API. This allows us to remove the special case and drop some code. v2: - mpgl_preferred_gl_versions -> mpgl_min_required_gl_versions Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index c3691cfaf8..38414fe18b 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -70,8 +70,6 @@ enum {
#define MPGL_VER_P(ver) MPGL_VER_GET_MAJOR(ver), MPGL_VER_GET_MINOR(ver)
-void mpgl_check_version(GL *gl, void *(*get_fn)(void *ctx, const char *n),
- void *fn_ctx);
void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *),
const char *ext2, struct mp_log *log);
void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n),