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 a659e8dbdd8fcab68ea3bac48faeefeed630499e..2f7375bd3a036ac670235b3a73af2d2a0460dda2 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;
    }