Commit ccb3a51a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Just invalidate STATE_FRAMEBUFFER in surface_load_ds_location().

parent 4428bda4
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment