Matteo Bruni : wined3d: Call set_render_offscreen at the end of context_setup_target.
Alexandre Julliard
julliard at winehq.org
Mon Aug 16 12:25:07 CDT 2010
Module: wine
Branch: master
Commit: e0528084b19a6f3c27d1af20aabfd512c0dca95b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0528084b19a6f3c27d1af20aabfd512c0dca95b
Author: Matteo Bruni <matteo.mystral at gmail.com>
Date: Sat Aug 7 22:35:31 2010 +0200
wined3d: Call set_render_offscreen at the end of context_setup_target.
This fixes a regression caused by 20f51c29a99299384e840e148f02aae66bfb45be.
---
dlls/wined3d/context.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index e22149c..93b4228 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2278,8 +2278,6 @@ static void context_setup_target(IWineD3DDeviceImpl *device,
render_offscreen = surface_is_offscreen(target);
if (context->current_rt == target && render_offscreen == old_render_offscreen) return;
- context_set_render_offscreen(context, StateTable, render_offscreen);
-
/* To compensate the lack of format switching with some offscreen rendering methods and on onscreen buffers
* the alpha blend state changes with different render target formats. */
if (!context->current_rt)
@@ -2347,6 +2345,7 @@ static void context_setup_target(IWineD3DDeviceImpl *device,
context->draw_buffer_dirty = TRUE;
context->current_rt = target;
+ context_set_render_offscreen(context, StateTable, render_offscreen);
}
/*****************************************************************************
More information about the wine-cvs
mailing list