summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-10-11 15:39:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-10-11 15:39:11 +0000
commit5dce1e5c420872ae096854841a9665f8d3d649fb (patch)
tree198c18a32268669e170a1986dea3b3a8643ddabd /src
parentdd29e04bd6097ad169bb841bd137ecabf3d7a3de (diff)
don't request accum buffer in color index mode
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index 4fd58f2027..5aea5a44e5 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -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);
}