diff options
author | Kurt Kartaltepe <kkartaltepe@gmail.com> | 2021-11-29 00:16:15 -0800 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-12-02 12:20:16 +0100 |
commit | d86bfebe6dcc8a3d6f8eb3baeb8bb0373cae27c6 (patch) | |
tree | 9efdd57cc931bdcf7dee2771095d6aa65084763f | |
parent | 87ce3b31a92a9bd0b4c4406113586696dc573f2a (diff) | |
download | mpv-d86bfebe6dcc8a3d6f8eb3baeb8bb0373cae27c6.tar.bz2 mpv-d86bfebe6dcc8a3d6f8eb3baeb8bb0373cae27c6.tar.xz |
opengl: support DebugMessageCallback on ES
This function is provided by a different extension on OpenGL ES so we
add a separate gl_functions.
-rw-r--r-- | video/out/opengl/common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 1a5efe0460..949c385a61 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -454,6 +454,17 @@ static const struct gl_functions gl_functions[] = { {0} }, }, + // ES version uses a different extension. + { + .ver_es_core = 320, + .extension = "GL_KHR_debug", + .provides = MPGL_CAP_DEBUG, + .functions = (const struct gl_function[]) { + // (only functions needed by us) + DEF_FN(DebugMessageCallback), + {0} + }, + }, // These don't exist - they are for the sake of mpv internals, and libmpv // interaction (see libmpv/opengl_cb.h). // This is not used by the render API, only the deprecated opengl-cb API. |