[1/3] wined3d: Call set_render_offscreen at the end of context_setup_target.

Matteo Bruni matteo.mystral at gmail.com
Mon Aug 16 06:24:51 CDT 2010


This should fix http://bugs.winehq.org/show_bug.cgi?id=23904.
-------------- next part --------------
From 7ac58e77918ec3b05924c3ce5bfbc5a47bb261bf Mon Sep 17 00:00:00 2001
From: Matteo Bruni <matteo.mystral at gmail.com>
Date: Sat, 7 Aug 2010 22:35:31 +0200
Subject: 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);
 }
 
 /*****************************************************************************
-- 
1.7.1


More information about the wine-patches mailing list