[PATCH 5/5] wined3d: Only disable blending for offscreen targets.
Henri Verbeet
hverbeet at codeweavers.com
Wed Dec 9 04:51:19 CST 2009
---
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");
--
1.6.4.4
More information about the wine-patches
mailing list