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

This commit is contained in:
Jan Zerebecki 2006-06-09 17:32:46 +02:00 committed by Alexandre Julliard
parent 7528fc0de1
commit c6449b5a91
1 changed files with 3 additions and 2 deletions

View File

@ -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)");
}