From ccb3a51a44beb0a57bbd588c70c1add2ce9c2ec4 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 31 Jul 2011 17:33:42 +0200 Subject: [PATCH] wined3d: Just invalidate STATE_FRAMEBUFFER in surface_load_ds_location(). --- dlls/wined3d/surface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 3d9bfb748a4..0b73433d62f 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();