wined3d: Setup target if offscreen rendering setting changed.

This commit is contained in:
Matteo Bruni 2010-06-28 21:13:56 +02:00 committed by Alexandre Julliard
parent 5a05950271
commit 20f51c29a9
2 changed files with 1 additions and 4 deletions

View File

@ -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);

View File

@ -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)