diff options
Diffstat (limited to 'xc/extras/Mesa/src/context.c')
-rw-r--r-- | xc/extras/Mesa/src/context.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xc/extras/Mesa/src/context.c b/xc/extras/Mesa/src/context.c index f72b0caa0..67ca90e3c 100644 --- a/xc/extras/Mesa/src/context.c +++ b/xc/extras/Mesa/src/context.c @@ -252,7 +252,6 @@ static void print_timings( GLcontext *ctx ) /* * Allocate a new GLvisual object. * Input: rgbFlag - GL_TRUE=RGB(A) mode, GL_FALSE=Color Index mode - * alphaFlag - alloc software alpha buffers? * dbFlag - double buffering? * stereoFlag - stereo buffer? * depthBits - requested bits per depth buffer value @@ -269,7 +268,6 @@ static void print_timings( GLcontext *ctx ) */ GLvisual * _mesa_create_visual( GLboolean rgbFlag, - GLboolean alphaFlag, GLboolean dbFlag, GLboolean stereoFlag, GLint redBits, @@ -323,7 +321,7 @@ _mesa_create_visual( GLboolean rgbFlag, vis->RedBits = redBits; vis->GreenBits = greenBits; vis->BlueBits = blueBits; - vis->AlphaBits = alphaFlag ? (8 * sizeof(GLubyte)) : alphaBits; + vis->AlphaBits = alphaBits; vis->IndexBits = indexBits; vis->DepthBits = depthBits; @@ -333,8 +331,6 @@ _mesa_create_visual( GLboolean rgbFlag, vis->AccumAlphaBits = (accumAlphaBits > 0) ? (8 * sizeof(GLaccum)) : 0; vis->StencilBits = (stencilBits > 0) ? (8 * sizeof(GLstencil)) : 0; - vis->SoftwareAlpha = alphaFlag; - if (depthBits == 0) { /* Special case. Even if we don't have a depth buffer we need * good values for DepthMax for Z vertex transformation purposes. @@ -365,7 +361,7 @@ GLvisual *gl_create_visual( GLboolean rgbFlag, GLint blueBits, GLint alphaBits ) { - return _mesa_create_visual(rgbFlag, alphaFlag, dbFlag, stereoFlag, + return _mesa_create_visual(rgbFlag, dbFlag, stereoFlag, redBits, greenBits, blueBits, alphaBits, indexBits, depthBits, stencilBits, accumBits, accumBits, accumBits, accumBits, 0); |