Module: wine Branch: master Commit: fb8fde81d1cfaad2ee488aa5216ee853e000301e URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb8fde81d1cfaad2ee488aa521...
Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Apr 6 00:49:00 2008 +0200
wined3d: Disable blending when clearing.
---
dlls/wined3d/context.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index fb96584..f8fda6e 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -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); checkGLcall("glEnable GL_SCISSOR_TEST"); context->last_was_blit = FALSE;