summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-08 21:36:38 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-08 21:36:38 +0000
commitb4269c07f8fe51912a01a36ff6239f1565d0639c (patch)
tree412903e646b58027641f06c56ce1cea61e018432 /src
parentcf085db28a128ff25c3d9cdbc5277ca1fd2eff48 (diff)
change test for presence of accum buffer
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/accum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index a659e8dbdd..2f7375bd3a 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -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;
}