mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
added extra check to optimized GL_RETURN case
This commit is contained in:
parent
7eb0603574
commit
f8246e2fda
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: accum.c,v 1.21 2000/06/19 00:42:24 brianp Exp $ */
|
||||
/* $Id: accum.c,v 1.22 2000/07/14 04:15:37 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -348,7 +348,8 @@ _mesa_Accum( GLenum op, GLfloat value )
|
|||
if (ctx->IntegerAccumMode && value != 1.0)
|
||||
rescale_accum(ctx);
|
||||
|
||||
if (ctx->IntegerAccumMode && ctx->IntegerAccumScaler > 0) {
|
||||
if (ctx->IntegerAccumMode && ctx->IntegerAccumScaler > 0
|
||||
&& (GLint) (256 / ctx->IntegerAccumScaler) <= 32768) {
|
||||
/* 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