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:
@@ -142,7 +142,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView *view, ulong options, BGLDisp
|
|||||||
struct dd_function_table functions;
|
struct dd_function_table functions;
|
||||||
|
|
||||||
fVisual = _mesa_create_visual( rgbFlag, dblFlag, stereoFlag, red, green, blue, alpha,
|
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
|
// Initialize device driver function table
|
||||||
_mesa_init_driver_functions(&functions);
|
_mesa_init_driver_functions(&functions);
|
||||||
@@ -195,7 +195,7 @@ MesaSoftwareRenderer::MesaSoftwareRenderer(BGLView *view, ulong options, BGLDisp
|
|||||||
fVisual->haveDepthBuffer,
|
fVisual->haveDepthBuffer,
|
||||||
fVisual->haveStencilBuffer,
|
fVisual->haveStencilBuffer,
|
||||||
fVisual->haveAccumBuffer,
|
fVisual->haveAccumBuffer,
|
||||||
GL_FALSE,
|
alphaFlag,
|
||||||
GL_FALSE );
|
GL_FALSE );
|
||||||
|
|
||||||
// Use default TCL pipeline
|
// Use default TCL pipeline
|
||||||
|
|||||||
Reference in New Issue
Block a user