mesa: add yet more context fields for GL_ARB_debug_output
authornobled <nobled@dreamwidth.org>
Mon, 2 May 2011 17:52:28 +0000 (17:52 +0000)
committerMarek Olšák <maraeo@gmail.com>
Sat, 10 Mar 2012 20:42:06 +0000 (21:42 +0100)
src/mesa/main/mtypes.h

index 53544429e37aa228008d67c7b7cc51105e65ac9d..35dc30bd2d7404c49c4cb6027b5e9296f0655ac0 100644 (file)
@@ -3221,6 +3221,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;
@@ -3230,8 +3237,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;