summaryrefslogtreecommitdiff
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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index aeb6743c2f..13d7acee57 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -1,4 +1,4 @@
-/* $Id: accum.c,v 1.26 2000/09/26 20:53:53 brianp Exp $ */
+/* $Id: accum.c,v 1.27 2000/10/17 00:42:02 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -236,6 +236,8 @@ _mesa_Accum( GLenum op, GLfloat value )
if (ctx->IntegerAccumMode && value != ctx->IntegerAccumScaler)
rescale_accum(ctx);
+ RENDER_START(ctx);
+
if (ctx->IntegerAccumMode) {
/* simply add integer color values into accum buffer */
GLuint j;
@@ -279,6 +281,7 @@ _mesa_Accum( GLenum op, GLfloat value )
/* restore read buffer = draw buffer (the default) */
(*ctx->Driver.SetReadBuffer)( ctx, ctx->DrawBuffer,
ctx->Color.DriverDrawBuffer );
+ RENDER_FINISH(ctx);
break;
case GL_LOAD:
@@ -299,6 +302,7 @@ _mesa_Accum( GLenum op, GLfloat value )
ctx->IntegerAccumScaler = 0.0;
}
+ RENDER_START(ctx);
if (ctx->IntegerAccumMode) {
/* just copy values into accum buffer */
GLuint j;
@@ -342,6 +346,7 @@ _mesa_Accum( GLenum op, GLfloat value )
/* restore read buffer = draw buffer (the default) */
(*ctx->Driver.SetReadBuffer)( ctx, ctx->DrawBuffer,
ctx->Color.DriverDrawBuffer );
+ RENDER_FINISH(ctx);
break;
case GL_RETURN:
@@ -349,6 +354,7 @@ _mesa_Accum( GLenum op, GLfloat value )
if (ctx->IntegerAccumMode && value != 1.0)
rescale_accum(ctx);
+ RENDER_START(ctx);
if (ctx->IntegerAccumMode && ctx->IntegerAccumScaler > 0) {
/* build lookup table to avoid many floating point multiplies */
static GLchan multTable[32768];
@@ -412,6 +418,7 @@ _mesa_Accum( GLenum op, GLfloat value )
ypos++;
}
}
+ RENDER_FINISH(ctx);
break;
default: