wined3d: Move a checkGLcall to it's gl call inside an "if".
This commit is contained in:
parent
7528fc0de1
commit
c6449b5a91
|
@ -4135,9 +4135,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
|
||||||
glEnable(GL_LINE_SMOOTH);
|
glEnable(GL_LINE_SMOOTH);
|
||||||
checkGLcall("glEnable(GL_LINE_SMOOTH)");
|
checkGLcall("glEnable(GL_LINE_SMOOTH)");
|
||||||
} else {
|
} else {
|
||||||
if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE])
|
if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE]) {
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
checkGLcall("glDisable(GL_BLEND)");
|
checkGLcall("glDisable(GL_BLEND)");
|
||||||
|
}
|
||||||
glDisable(GL_LINE_SMOOTH);
|
glDisable(GL_LINE_SMOOTH);
|
||||||
checkGLcall("glDisable(GL_LINE_SMOOTH)");
|
checkGLcall("glDisable(GL_LINE_SMOOTH)");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue