summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_stencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-11-27 22:44:35 +0000
committerBrian Paul <[email protected]>2004-11-27 22:44:35 +0000
commit118a8bad73bda88fc54f802b2beeb687c8ddb45a (patch)
tree7878fb4d61acdd86618d39d2e0cdb03cb51a5534 /src/mesa/swrast/s_stencil.c
parent29926a11b16ec7a235947d95e9a46777605dd30e (diff)
new comments and assertions
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r--src/mesa/swrast/s_stencil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c
index 4c7ddb86cd9..38182ad613b 100644
--- a/src/mesa/swrast/s_stencil.c
+++ b/src/mesa/swrast/s_stencil.c
@@ -1127,6 +1127,8 @@ _swrast_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
void
_swrast_alloc_stencil_buffer( GLframebuffer *buffer )
{
+ ASSERT(buffer->UseSoftwareStencilBuffer);
+
/* deallocate current stencil buffer if present */
if (buffer->Stencil) {
MESA_PBUFFER_FREE(buffer->Stencil);