diff options
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 2 |
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); |