Stefan Dösinger : wined3d: Disable the fog before writing the back buffer data.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 18 05:13:34 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 9a9a14d4f5d6a47da281b397c630e4e9b7e789eb
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=9a9a14d4f5d6a47da281b397c630e4e9b7e789eb

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Mon Jul 17 22:23:40 2006 +0200

wined3d: Disable the fog before writing the back buffer data.

---

 dlls/wined3d/surface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index f28561e..fa4f615 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1091,6 +1091,7 @@ static HRESULT WINAPI IWineD3DSurfaceImp
                that helps performance */
             glDisable(GL_BLEND);
             glDisable(GL_DEPTH_TEST);
+            glDisable(GL_FOG);
 
             switch(wined3d_settings.rendertargetlock_mode) {
                 case RTL_AUTO:
@@ -1122,6 +1123,7 @@ static HRESULT WINAPI IWineD3DSurfaceImp
             if(myDevice->stateBlock->renderState[D3DRS_ZENABLE] == D3DZB_TRUE ||
                myDevice->stateBlock->renderState[D3DRS_ZENABLE] == D3DZB_USEW) glEnable(GL_DEPTH_TEST);
             if (myDevice->stateBlock->renderState[D3DRS_ALPHABLENDENABLE]) glEnable(GL_BLEND);
+            if (myDevice->stateBlock->renderState[D3DRS_FOGENABLE]) glEnable(GL_FOG);
 
             LEAVE_GL();
 




More information about the wine-cvs mailing list