don't request accum buffer in color index mode
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 11 Oct 2003 15:39:11 +0000 (15:39 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 11 Oct 2003 15:39:11 +0000 (15:39 +0000)
src/mesa/drivers/osmesa/osmesa.c

index 4fd58f202731dd491ef1f7ff20bdfa91c1912fa8..5aea5a44e55e4d38f3208a44bd2d7be862275f67 100644 (file)
@@ -793,8 +793,9 @@ hook_in_driver_functions( GLcontext *ctx )
 GLAPI OSMesaContext GLAPIENTRY
 OSMesaCreateContext( GLenum format, OSMesaContext sharelist )
 {
+   const GLint accumBits = (format == GL_COLOR_INDEX) ? 0 : 16;
    return OSMesaCreateContextExt(format, DEFAULT_SOFTWARE_DEPTH_BITS,
-                                 8, 16, sharelist);
+                                 8, accumBits, sharelist);
 }