wined3d: Setup target if offscreen rendering setting changed.
This commit is contained in:
parent
5a05950271
commit
20f51c29a9
|
@ -2242,8 +2242,8 @@ static void context_setup_target(IWineD3DDeviceImpl *device,
|
|||
const struct StateEntry *StateTable = device->StateTable;
|
||||
|
||||
if (!target) return;
|
||||
else if (context->current_rt == target) return;
|
||||
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);
|
||||
|
||||
|
|
|
@ -334,9 +334,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
|
|||
surface_load_location(This->back_buffers[0], SFLAG_INTEXTURE, NULL);
|
||||
surface_modify_location(This->back_buffers[0], SFLAG_INDRAWABLE, FALSE);
|
||||
This->render_to_fbo = TRUE;
|
||||
|
||||
/* Force the context manager to update the render target configuration next draw. */
|
||||
context->current_rt = NULL;
|
||||
}
|
||||
|
||||
if(This->render_to_fbo)
|
||||
|
|
Loading…
Reference in New Issue