mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
wined3d: Call set_render_offscreen at the end of context_setup_target.
This fixes a regression caused by 20f51c29a9
.
This commit is contained in:
parent
084d4ec652
commit
e0528084b1
@ -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);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user