wined3d: move a checkGLcall to it's gl call inside an "if"

Jan Zerebecki jan.wine at zerebecki.de
Fri Jun 9 10:32:46 CDT 2006


If this patch is rejected from inclusion, please tell me why, as i would have to
ask anyway.

From: Jan Zerebecki <jan.wine at zerebecki.de>
Changelog:
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 305fc10..332babf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3946,9 +3946,10 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
             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-patches mailing list