summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2013-08-26 19:02:11 +1000
committerBrian Paul <brianp@vmware.com>2013-09-04 07:47:49 -0600
commitb5c4795f386976830370f56d1fa5a1c4099d88e2 (patch)
tree2051f70d7f606244231760940b7f2856aa227dd9 /src/mesa/main/enable.c
parenta7f5eb8ebb953bb106c06cabb20a309cef392252 (diff)
downloadexternal_mesa3d-b5c4795f386976830370f56d1fa5a1c4099d88e2.zip
external_mesa3d-b5c4795f386976830370f56d1fa5a1c4099d88e2.tar.gz
external_mesa3d-b5c4795f386976830370f56d1fa5a1c4099d88e2.tar.bz2
mesa: Implement GL_DEBUG_OUTPUT
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 21e5931..5e2fd80 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -364,6 +364,11 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
FLUSH_VERTICES(ctx, _NEW_DEPTH);
ctx->Depth.Test = state;
break;
+ case GL_DEBUG_OUTPUT:
+ if (!_mesa_is_desktop_gl(ctx))
+ goto invalid_enum_error;
+ ctx->Debug.DebugOutput = state;
+ break;
case GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB:
if (!_mesa_is_desktop_gl(ctx))
goto invalid_enum_error;
@@ -1201,6 +1206,10 @@ _mesa_IsEnabled( GLenum cap )
return ctx->Light.ColorMaterialEnabled;
case GL_CULL_FACE:
return ctx->Polygon.CullFlag;
+ case GL_DEBUG_OUTPUT:
+ if (!_mesa_is_desktop_gl(ctx))
+ goto invalid_enum_error;
+ return ctx->Debug.DebugOutput;
case GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB:
if (!_mesa_is_desktop_gl(ctx))
goto invalid_enum_error;