Stefan Dösinger : wined3d: Restore the call to context_validate_onscreen_formats.

Alexandre Julliard julliard at winehq.org
Thu Jul 28 13:55:40 CDT 2011


Module: wine
Branch: master
Commit: 41f9ca2abfe7ca253d25e7184113da56c67ee815
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=41f9ca2abfe7ca253d25e7184113da56c67ee815

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Jul 27 23:22:49 2011 +0200

wined3d: Restore the call to context_validate_onscreen_formats.

This got lost accidentally in d321959dd7ba21b555f27d32937c911fa61117a6.

---

 dlls/wined3d/context.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index b83dab5..fbfb843 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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. */




More information about the wine-cvs mailing list