diff options
author | Brian Paul <[email protected]> | 1999-12-10 19:09:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-12-10 19:09:59 +0000 |
commit | 4c44d63f01a01f134d7e4456d4209edee97f9ef5 (patch) | |
tree | b44187d94a5a6e8b0bac99f93104c67e482ac4c4 /src/mesa | |
parent | 5c3bee503999fbc0d7c65462ff62f9e38fe40e33 (diff) |
pass new args to gl_create_framebuffer()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index e5dca912504..c09accf6b64 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.4 1999/11/25 17:37:00 brianp Exp $ */ +/* $Id: osmesa.c,v 1.5 1999/12/10 19:09:59 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -220,7 +220,7 @@ OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, OSMesaContext share GL_FALSE, /* stereo */ DEPTH_BITS, STENCIL_BITS, - ACCUM_BITS, + rgbmode ? ACCUM_BITS : 0, indexBits, 8, 8, 8, alphaBits ); if (!osmesa->gl_visual) { @@ -235,7 +235,12 @@ OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, OSMesaContext share FREE(osmesa); return NULL; } - osmesa->gl_buffer = gl_create_framebuffer( osmesa->gl_visual ); + osmesa->gl_buffer = gl_create_framebuffer( osmesa->gl_visual, + osmesa->gl_visual->DepthBits > 0, + osmesa->gl_visual->StencilBits > 0, + osmesa->gl_visual->AccumBits > 0, + osmesa->gl_visual->AlphaBits > 0 ); + if (!osmesa->gl_buffer) { gl_destroy_visual( osmesa->gl_visual ); gl_destroy_context( osmesa->gl_ctx ); |