diff options
author | Brian Paul <[email protected]> | 2001-09-10 18:53:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-09-10 18:53:45 +0000 |
commit | 30230a9cd171128c34c55bd751242dbe07dc3a89 (patch) | |
tree | e4834686b2a498c39b5f1dd83a63e8709252e757 /src/mesa/drivers | |
parent | 9348cfc6e8d72dea6b4ee248b7ef69ad639efea2 (diff) |
fixed s/w alpha bug 458411
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 1ca21486be6..d18a9a50e83 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.65 2001/08/28 23:12:37 brianp Exp $ */ +/* $Id: osmesa.c,v 1.66 2001/09/10 18:53:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -135,12 +135,10 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, GLint rind, gind, bind, aind; GLint indexBits = 0, redBits = 0, greenBits = 0, blueBits = 0, alphaBits =0; GLboolean rgbmode; - GLboolean swalpha; const GLuint i4 = 1; const GLubyte *i1 = (GLubyte *) &i4; const GLint little_endian = *i1; - swalpha = GL_FALSE; rind = gind = bind = aind = 0; if (format==OSMESA_COLOR_INDEX) { indexBits = 8; @@ -233,7 +231,6 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, gind = 1; bind = 2; rgbmode = GL_TRUE; - swalpha = GL_TRUE; } else if (format==OSMESA_BGR) { indexBits = 0; @@ -249,7 +246,6 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, gind = 1; bind = 0; rgbmode = GL_TRUE; - swalpha = GL_TRUE; } else if (format==OSMESA_RGB_565) { indexBits = 0; @@ -265,7 +261,6 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, gind = 0; bind = 0; rgbmode = GL_TRUE; - swalpha = GL_FALSE; } else { return NULL; @@ -312,7 +307,7 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, osmesa->gl_visual->depthBits > 0, osmesa->gl_visual->stencilBits > 0, osmesa->gl_visual->accumRedBits > 0, - swalpha ); + GL_FALSE /* s/w alpha */ ); if (!osmesa->gl_buffer) { _mesa_destroy_visual( osmesa->gl_visual ); |