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

oldstable
Stefan Dösinger 2006-07-17 22:23:40 +02:00 committed by Alexandre Julliard
parent 739d565c59
commit 9a9a14d4f5
1 changed files with 2 additions and 0 deletions

View File

@ -1091,6 +1091,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
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 IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
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();