mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
opengl: support DebugMessageCallback on ES
This function is provided by a different extension on OpenGL ES so we add a separate gl_functions.
This commit is contained in:
parent
87ce3b31a9
commit
d86bfebe6d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user