Henri Verbeet : wined3d: Just invalidate STATE_FRAMEBUFFER in surface_load_ds_location().

Alexandre Julliard julliard at winehq.org
Mon Aug 1 13:22:08 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Jul 31 17:33:42 2011 +0200

wined3d: Just invalidate STATE_FRAMEBUFFER in surface_load_ds_location().

---

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




More information about the wine-cvs mailing list