Commit c6449b5a authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

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

parent 7528fc0d
......@@ -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)");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment