From 118a8bad73bda88fc54f802b2beeb687c8ddb45a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 27 Nov 2004 22:44:35 +0000 Subject: new comments and assertions --- src/mesa/swrast/s_stencil.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/swrast/s_stencil.c') diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 4c7ddb86cd..38182ad613 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); -- cgit v1.2.3