Module: wine Branch: refs/heads/master Commit: ebcef4a5f616aaf5e6d2f5ae907efddf18becc2c URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ebcef4a5f616aaf5e6d2f5ae...
Author: Stefan Dösinger stefan@codeweavers.com Date: Mon May 29 10:55:38 2006 +0200
wined3d: Do not disable GL_BLEND when alpha blending is active.
---
dlls/wined3d/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 4a22275..a9dc6b4 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3943,7 +3943,8 @@ #endif glEnable(GL_LINE_SMOOTH); checkGLcall("glEnable(GL_LINE_SMOOTH)"); } else { - glDisable(GL_BLEND); + if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE]) + glDisable(GL_BLEND); checkGLcall("glDisable(GL_BLEND)"); glDisable(GL_LINE_SMOOTH); checkGLcall("glDisable(GL_LINE_SMOOTH)");