-/* $Id: accum.c,v 1.20 2000/04/05 14:40:04 brianp Exp $ */
+/* $Id: accum.c,v 1.21 2000/06/19 00:42:24 brianp Exp $ */
/*
* Mesa 3-D graphics library
switch (op) {
case GL_ADD:
- {
+ if (value != 0.0F) {
const GLaccum intVal = (GLaccum) (value * acc_scale);
GLuint j;
/* Leave optimized accum buffer mode */
break;
case GL_MULT:
- {
+ if (value != 1.0F) {
GLuint j;
/* Leave optimized accum buffer mode */
if (ctx->IntegerAccumMode)
break;
case GL_ACCUM:
+ if (value == 0.0F)
+ return;
+
(*ctx->Driver.SetReadBuffer)( ctx, ctx->ReadBuffer,
ctx->Pixel.DriverReadBuffer );