From e0528084b19a6f3c27d1af20aabfd512c0dca95b Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Sat, 7 Aug 2010 22:35:31 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index e22149c3a94..93b422837f1 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); } /*****************************************************************************