change test for presence of accum buffer
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 8 Oct 2005 21:36:38 +0000 (21:36 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 8 Oct 2005 21:36:38 +0000 (21:36 +0000)
src/mesa/main/accum.c

index a659e8d..2f7375b 100644 (file)
@@ -70,7 +70,7 @@ _mesa_Accum( GLenum op, GLfloat value )
       return;
    }
 
-   if (ctx->Visual.accumRedBits == 0) {
+   if (ctx->DrawBuffer->Visual.haveAccumBuffer == 0) {
       _mesa_error(ctx, GL_INVALID_OPERATION, "glAccum(no accum buffer)");
       return;
    }