Module: wine Branch: master Commit: bfe6695d30bb0d2cb6a97d83cea66cf417bb144e URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfe6695d30bb0d2cb6a97d83ce...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Dec 9 11:51:19 2009 +0100
wined3d: Only disable blending for offscreen targets.
---
dlls/wined3d/state.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 6df6e54..716ec48 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -252,7 +252,8 @@ static void state_blend(DWORD state, IWineD3DStateBlockImpl *stateblock, struct
/* Disable blending in all cases even without pixelshaders. With blending on we could face a big performance penalty. * The d3d9 visual test confirms the behavior. */ - if (!(target->resource.format_desc->Flags & WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING)) + if (context->render_offscreen + && !(target->resource.format_desc->Flags & WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING)) { glDisable(GL_BLEND); checkGLcall("glDisable GL_BLEND");