summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglglobals.h
diff options
context:
space:
mode:
authorKyle Brenneman <[email protected]>2016-09-12 16:15:10 -0400
committerAdam Jackson <[email protected]>2016-09-14 11:45:58 -0400
commit7206b3a5565c0835589f85388ae9c121dfd5b5a5 (patch)
treecc784c3efe12613fa49d4581bb88e8d47b628c10 /src/egl/main/eglglobals.h
parent1d535c1e83ae45b67a141420298c5d08082e0ed8 (diff)
egl: Add storage for EGL_KHR_debug's state to EGL objects
Reviewed-by: Adam Jackson <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main/eglglobals.h')
-rw-r--r--src/egl/main/eglglobals.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h
index ae1b75b4545..dfa357759b8 100644
--- a/src/egl/main/eglglobals.h
+++ b/src/egl/main/eglglobals.h
@@ -36,6 +36,13 @@
#include "egltypedefs.h"
+enum
+{
+ _EGL_DEBUG_BIT_CRITICAL = 0x1,
+ _EGL_DEBUG_BIT_ERROR = 0x2,
+ _EGL_DEBUG_BIT_WARN = 0x4,
+ _EGL_DEBUG_BIT_INFO = 0x8,
+};
/**
* Global library data
@@ -51,6 +58,9 @@ struct _egl_global
void (*AtExitCalls[10])(void);
const char *ClientExtensionString;
+
+ EGLDEBUGPROCKHR debugCallback;
+ unsigned int debugTypesEnabled;
};