mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:07:17 +00:00
wined3d: Disable blending when clearing.
This commit is contained in:
parent
481bcdfe2a
commit
fb8fde81d1
|
@ -997,6 +997,12 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Blending and clearing should be orthogonal, but tests on the nvidia driver show that disabling
|
||||||
|
* blending when clearing improves the clearing performance increadibly
|
||||||
|
*/
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_ALPHABLENDENABLE), StateTable);
|
||||||
|
|
||||||
glEnable(GL_SCISSOR_TEST);
|
glEnable(GL_SCISSOR_TEST);
|
||||||
checkGLcall("glEnable GL_SCISSOR_TEST");
|
checkGLcall("glEnable GL_SCISSOR_TEST");
|
||||||
context->last_was_blit = FALSE;
|
context->last_was_blit = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue