[PATCH 3/5] wined3d: Just invalidate STATE_FRAMEBUFFER in surface_load_ds_location().

Henri Verbeet hverbeet at codeweavers.com
Sun Jul 31 10:33:42 CDT 2011


---
 dlls/wined3d/surface.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 3d9bfb7..0b73433 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5759,8 +5759,7 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
         surface_depth_blt(surface, gl_info, device->depth_blt_texture, 0, 0, w, h, bind_target);
         checkGLcall("depth_blt");
 
-        if (context->current_fbo) context_bind_fbo(context, GL_FRAMEBUFFER, &context->current_fbo->id);
-        else context_bind_fbo(context, GL_FRAMEBUFFER, NULL);
+        context_invalidate_state(context, STATE_FRAMEBUFFER);
 
         LEAVE_GL();
 
@@ -5777,7 +5776,7 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
                 0, surface->pow2Height - h, w, h, surface->texture_target);
         checkGLcall("depth_blt");
 
-        if (context->current_fbo) context_bind_fbo(context, GL_FRAMEBUFFER, &context->current_fbo->id);
+        context_invalidate_state(context, STATE_FRAMEBUFFER);
 
         LEAVE_GL();
 
-- 
1.7.3.4




More information about the wine-patches mailing list