summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/accum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/accum.c')
-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 a0a206bea67..89ae31556d3 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -468,7 +468,7 @@ _mesa_Accum( GLenum op, GLfloat value )
return;
}
- if (ctx->DrawBuffer->Visual.haveAccumBuffer == 0) {
+ if (ctx->DrawBuffer->Visual.accumRedBits == 0) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glAccum(no accum buffer)");
return;
}