diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-02-02 21:53:59 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-02-02 21:53:59 +0000 |
commit | 03d7215604983239a99eb301120e5c68c266f96e (patch) | |
tree | 715e1096a4551a933013d8dc8065297b30d50a42 /src | |
parent | 82e6fe5e368b7b131145b314e18c77bb8554eef7 (diff) |
added check for IntegerAccumScaler > 0 in GL_RETURN case
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/accum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 031751e28fe..07a1059457c 100644 --- a/src/mesa/main/accum.c +++ b/src/mesa/main/accum.c @@ -1,4 +1,4 @@ -/* $Id: accum.c,v 1.10.2.1 1999/11/27 01:35:42 brianp Exp $ */ +/* $Id: accum.c,v 1.10.2.2 2000/02/02 21:53:59 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -338,7 +338,7 @@ void gl_Accum( GLcontext *ctx, 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]; |