mirror of https://github.com/mpv-player/mpv
egl_helpers: ensure debug context attrs/bit exist
Regression from e13fe1299d
. 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.
This commit is contained in:
parent
ef301893a5
commit
7ad5ad4098
|
@ -45,6 +45,15 @@
|
||||||
typedef intptr_t EGLAttrib;
|
typedef intptr_t EGLAttrib;
|
||||||
#endif
|
#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 {
|
struct mp_egl_config_attr {
|
||||||
int attrib;
|
int attrib;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
Loading…
Reference in New Issue