From: Jordan Justen Date: Sat, 11 Jun 2016 23:23:44 +0000 (-0700) Subject: main: Add MESA_VERBOSE=api support for glClearStencil X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=861c9cbee3d741ea332a9ceee8ae64db49f114c2;p=mesa.git main: Add MESA_VERBOSE=api support for glClearStencil Signed-off-by: Jordan Justen Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 409b2f0d58c..b303bb7c13f 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -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; }