main: Add MESA_VERBOSE=api support for glClearStencil
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 11 Jun 2016 23:23:44 +0000 (16:23 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 26 Aug 2016 17:09:22 +0000 (10:09 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/stencil.c

index 409b2f0d58cca0dc47327e56e9d823a32b2375a5..b303bb7c13f69e69f7328b320c54fc27b6003202 100644 (file)
@@ -109,6 +109,9 @@ _mesa_ClearStencil( GLint s )
 {
    GET_CURRENT_CONTEXT(ctx);
 
+   if (MESA_VERBOSE & VERBOSE_API)
+      _mesa_debug(ctx, "glClearStencil(%d)\n", s);
+
    ctx->Stencil.Clear = (GLuint) s;
 }