summaryrefslogtreecommitdiff
path: root/src/mesa/main/accum.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-02-02 21:53:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-02-02 21:53:11 +0000
commitbd409f4143b20940a2111c73d3367013039491ec (patch)
tree3a3dd42a02acf328f0a60e4a85e5d1b3ea7887eb /src/mesa/main/accum.c
parent8427d93449b69a3f6918ad43b4d7dc3083b29b3d (diff)
added check for IntegerAccumScaler > 0 in GL_RETURN case
Diffstat (limited to 'src/mesa/main/accum.c')
-rw-r--r--src/mesa/main/accum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index b052c74d0f..9621da5b5d 100644
--- a/src/mesa/main/accum.c
+++ b/src/mesa/main/accum.c
@@ -1,4 +1,4 @@
-/* $Id: accum.c,v 1.15 2000/02/02 21:52:26 brianp Exp $ */
+/* $Id: accum.c,v 1.16 2000/02/02 21:53:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -345,7 +345,7 @@ _mesa_Accum( GLenum op, GLfloat value )
if (ctx->IntegerAccumMode && value != 1.0)
rescale_accum(ctx);
- if (ctx->IntegerAccumMode) {
+ if (ctx->IntegerAccumMode && ctx->IntegerAccumScaler > 0) {
/* build lookup table to avoid many floating point multiplies */
const GLfloat mult = ctx->IntegerAccumScaler;
static GLchan multTable[32768];