mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
added check for IntegerAccumScaler > 0 in GL_RETURN case
This commit is contained in:
parent
8427d93449
commit
bd409f4143
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue