summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/getstring.c
diff options
context:
space:
mode:
authornobled <[email protected]>2011-05-01 15:46:45 +0000
committerMarek Olšák <[email protected]>2012-03-10 21:42:05 +0100
commited087ee49808a692ce8a0389fcf6c9da27f99d8e (patch)
treeca730c3c4808b1db991652e43db7676bb24f438f /src/mesa/main/getstring.c
parent3917503b9a48275f389ec1e563fdb53415b87171 (diff)
mesa: add infrastructure for GL_ARB_debug_output
Marek v2: don't add the extension to extensions.c yet
Diffstat (limited to 'src/mesa/main/getstring.c')
-rw-r--r--src/mesa/main/getstring.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index dbf6c3f5e42..90e0280552e 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -224,6 +224,12 @@ _mesa_GetPointerv( GLenum pname, GLvoid **params )
*params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Ptr;
break;
#endif
+ case GL_DEBUG_CALLBACK_FUNCTION_ARB:
+ *params = (GLvoid *) ctx->Debug.Callback;
+ break;
+ case GL_DEBUG_CALLBACK_USER_PARAM_ARB:
+ *params = ctx->Debug.CallbackData;
+ break;
default:
_mesa_error( ctx, GL_INVALID_ENUM, "glGetPointerv" );
return;