Jan Zerebecki : wined3d: Move a checkGLcall to it's gl call inside an
"if".
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 13 05:58:40 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: c6449b5a910d72caca80c4bf8916f910bf89861c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c6449b5a910d72caca80c4bf8916f910bf89861c
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Fri Jun 9 17:32:46 2006 +0200
wined3d: Move a checkGLcall to it's gl call inside an "if".
---
dlls/wined3d/device.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 3f5ddda..e0322eb 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4135,9 +4135,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl
glEnable(GL_LINE_SMOOTH);
checkGLcall("glEnable(GL_LINE_SMOOTH)");
} else {
- if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE])
+ if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE]) {
glDisable(GL_BLEND);
- checkGLcall("glDisable(GL_BLEND)");
+ checkGLcall("glDisable(GL_BLEND)");
+ }
glDisable(GL_LINE_SMOOTH);
checkGLcall("glDisable(GL_LINE_SMOOTH)");
}
More information about the wine-cvs
mailing list