wined3d: Do not disable GL_BLEND when alpha blending is active.

This commit is contained in:
Stefan Dösinger 2006-05-29 10:55:38 +02:00 committed by Alexandre Julliard
parent 21218c8587
commit ebcef4a5f6
1 changed files with 2 additions and 1 deletions

View File

@ -3943,7 +3943,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
glEnable(GL_LINE_SMOOTH); glEnable(GL_LINE_SMOOTH);
checkGLcall("glEnable(GL_LINE_SMOOTH)"); checkGLcall("glEnable(GL_LINE_SMOOTH)");
} else { } else {
glDisable(GL_BLEND); if(!This->stateBlock->renderState[WINED3DRS_ALPHABLENDENABLE])
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)");