[Mesa-dev] [PATCH 09/11] mesa: add yet more context fields for GL_ARB_debug_output

nobled nobled at dreamwidth.org
Mon May 2 16:01:05 PDT 2011


---
 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 41f6470..d381719 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3194,6 +3194,13 @@ OTHER_ERROR_OUT_OF_MEMORY,
 OTHER_ERROR_COUNT
 } OtherError;

+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;
@@ -3203,8 +3210,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[_MESA_MAX_DEBUG_LOGGED_MESSAGES];
    GLint NumMessages;
    GLint NextMsg;
-- 
1.7.0.4
-------------- next part --------------
From 295624edb588b5633f1d932a08077aa0767011d8 Mon Sep 17 00:00:00 2001
From: nobled <nobled at dreamwidth.org>
Date: Mon, 2 May 2011 17:52:28 +0000
Subject: [PATCH 09/10] mesa: add yet more context fields for GL_ARB_debug_output

---
 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 41f6470..d381719 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3194,6 +3194,13 @@ OTHER_ERROR_OUT_OF_MEMORY,
 OTHER_ERROR_COUNT
 } OtherError;
 
+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;
@@ -3203,8 +3210,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[_MESA_MAX_DEBUG_LOGGED_MESSAGES];
    GLint NumMessages;
    GLint NextMsg;
-- 
1.7.0.4


More information about the mesa-dev mailing list