[Mesa-dev] [PATCH 07/13] mesa: add yet more context fields for GL_ARB_debug_output
Marek Olšák
maraeo at gmail.com
Wed Feb 15 05:28:08 PST 2012
From: nobled <nobled at dreamwidth.org>
---
src/mesa/main/mtypes.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 5c2afa2..be7e721 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3229,6 +3229,13 @@ typedef enum {
OTHER_ERROR_COUNT
} gl_other_error;
+struct gl_client_debug
+{
+ GLboolean Defaults[3][2][6]; /* severity, source, type */
+ /* TODO: Add an object here that can track the state of an arbitrary
+ number of client-provided IDs. */
+};
+
struct gl_debug_state
{
GLDEBUGPROCARB Callback;
@@ -3238,8 +3245,7 @@ struct gl_debug_state
GLboolean WinsysErrors[WINSYS_ERROR_COUNT];
GLboolean ShaderErrors[SHADER_ERROR_COUNT];
GLboolean OtherErrors[OTHER_ERROR_COUNT];
- /* TODO: Add an object here that tracks the state of client-provided IDs
- in the APPLICATION and THIRD_PARTY namespaces. */
+ struct gl_client_debug ClientIDs;
struct gl_debug_msg Log[MAX_DEBUG_LOGGED_MESSAGES];
GLint NumMessages;
GLint NextMsg;
--
1.7.5.4
More information about the mesa-dev
mailing list