mesa: recognize and eliminate repeated error messages
[mesa.git] / src / mesa / main / mtypes.h
index bdaa4977b72ad64fbd9300dcb5a6af02b3525507..3b0ebcb7aef39b5728dd367f06a352e114a7b2e1 100644 (file)
@@ -2955,6 +2955,13 @@ struct __GLcontextRec
 #endif
 
    GLenum ErrorValue;        /**< Last error code */
+
+   /**
+    * Recognize and silence repeated error debug messages in buggy apps.
+    */
+   const char *ErrorDebugFmtString;
+   GLuint ErrorDebugCount;
+
    GLenum RenderMode;        /**< either GL_RENDER, GL_SELECT, GL_FEEDBACK */
    GLbitfield NewState;      /**< bitwise-or of _NEW_* flags */