[PATCH 07/10] wined3d: Bind the system framebuffer based on the actual location in context_apply_fbo_state().

Henri Verbeet hverbeet at codeweavers.com
Wed Aug 24 15:08:47 CDT 2011


We can do this now because SFLAG_INDRAWABLE is no longer ambiguous.
---
 dlls/wined3d/context.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f332adf..29dfd04 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -415,15 +415,15 @@ static void context_apply_fbo_state(struct wined3d_context *context, GLenum targ
         context->rebind_fbo = FALSE;
     }
 
-    if (render_targets)
+    if (location == SFLAG_INDRAWABLE)
     {
-        context->current_fbo = context_find_fbo_entry(context, target, render_targets, depth_stencil, location);
-        context_apply_fbo_entry(context, target, context->current_fbo);
+        context->current_fbo = NULL;
+        context_bind_fbo(context, target, NULL);
     }
     else
     {
-        context->current_fbo = NULL;
-        context_bind_fbo(context, target, NULL);
+        context->current_fbo = context_find_fbo_entry(context, target, render_targets, depth_stencil, location);
+        context_apply_fbo_entry(context, target, context->current_fbo);
     }
 }
 
-- 
1.7.3.4




More information about the wine-patches mailing list