diff options
author | Dudemanguy <random342@airmail.cc> | 2021-10-20 11:36:59 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-10-21 03:16:33 +0000 |
commit | 7ad5ad409872310b8fa17c9a4b0352d06f4e65ee (patch) | |
tree | da56e93a43745a004cc6a0d70ffe47b815595615 | |
parent | ef301893a5bd149767110841f8b0a7ebb7dee00e (diff) | |
download | mpv-7ad5ad409872310b8fa17c9a4b0352d06f4e65ee.tar.bz2 mpv-7ad5ad409872310b8fa17c9a4b0352d06f4e65ee.tar.xz |
egl_helpers: ensure debug context attrs/bit exist
Regression from e13fe1299d8aefdc264e74159cce07b8bfcf722c. Apparently,
Broadcom's EGL does not support the EGL_CONTEXT_FLAGS_KHR attribute nor
EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR. Just define these as EGL_NONE and 0
respectively if we do not have them.
-rw-r--r-- | video/out/opengl/egl_helpers.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/opengl/egl_helpers.c b/video/out/opengl/egl_helpers.c index fc28c61e62..0766be3c54 100644 --- a/video/out/opengl/egl_helpers.c +++ b/video/out/opengl/egl_helpers.c @@ -45,6 +45,15 @@ typedef intptr_t EGLAttrib; #endif +// Not every EGL provider (like RPI) has these. +#ifndef EGL_CONTEXT_FLAGS_KHR +#define EGL_CONTEXT_FLAGS_KHR EGL_NONE +#endif + +#ifndef EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR +#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0 +#endif + struct mp_egl_config_attr { int attrib; const char *name; |