From c6449b5a910d72caca80c4bf8916f910bf89861c Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Fri, 9 Jun 2006 17:32:46 +0200 Subject: [PATCH] wined3d: Move a checkGLcall to it's gl call inside an "if". --- dlls/wined3d/device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 3f5ddda5942..e0322eb0c2c 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4135,9 +4135,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D 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)"); }