actually activates alpha on _mesa_add_soft_renderbuffers

this fixes bug #1029, though make sure to use BGL_ALPHA flag with BGLView constructor


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20201 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-02-22 21:59:18 +00:00
parent ca21e6053e
commit 4f4762f0c1
@@ -142,7 +142,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView *view, ulong options, BGLDisp
struct dd_function_table functions;
fVisual = _mesa_create_visual( rgbFlag, dblFlag, stereoFlag, red, green, blue, alpha,
index, depth, stencil, accum, accum, accum, accum, 1);
index, depth, stencil, accum, accum, accum, alpha ? accum : 0, 1);
// Initialize device driver function table
_mesa_init_driver_functions(&functions);
@@ -195,7 +195,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView *view, ulong options, BGLDisp
fVisual->haveDepthBuffer,
fVisual->haveStencilBuffer,
fVisual->haveAccumBuffer,
GL_FALSE,
alphaFlag,
GL_FALSE );
// Use default TCL pipeline