wined3d: Restore the call to context_validate_onscreen_formats.

This got lost accidentally in d321959dd7.
This commit is contained in:
Stefan Dösinger 2011-07-27 23:22:49 +02:00 committed by Alexandre Julliard
parent 2ddf1c38c7
commit 41f9ca2abf
1 changed files with 5 additions and 0 deletions

View File

@ -2247,6 +2247,11 @@ BOOL context_apply_draw_state(struct wined3d_context *context, struct wined3d_de
fb->render_targets, fb->depth_stencil))
return FALSE;
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO && isStateDirty(context, STATE_FRAMEBUFFER))
{
context_validate_onscreen_formats(context, fb->depth_stencil);
}
/* Preload resources before FBO setup. Texture preload in particular may
* result in changes to the current FBO, due to using e.g. FBO blits for
* updating a resource location. */