From b4269c07f8fe51912a01a36ff6239f1565d0639c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 8 Oct 2005 21:36:38 +0000 Subject: [PATCH] change test for presence of accum buffer --- src/mesa/main/accum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index a659e8dbdd8..2f7375bd3a0 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; } -- 2.30.2