change test for presence of accum buffer

This commit is contained in:
Brian Paul
2005-10-08 21:36:38 +00:00
parent cf085db28a
commit b4269c07f8

View 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;
}