summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_auxbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_auxbuffer.c')
-rw-r--r--src/mesa/swrast/s_auxbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_auxbuffer.c b/src/mesa/swrast/s_auxbuffer.c
index 5d58c106852..b2224c8884b 100644
--- a/src/mesa/swrast/s_auxbuffer.c
+++ b/src/mesa/swrast/s_auxbuffer.c
@@ -41,6 +41,8 @@ _swrast_alloc_aux_buffers( GLframebuffer *buffer )
{
GLint i;
+ ASSERT(buffer->UseSoftwareAuxBuffers);
+
for (i = 0; i < buffer->Visual.numAuxBuffers; i++) {
if (buffer->AuxBuffers[i]) {
_mesa_free(buffer->AuxBuffers[i]);