Module: wine Branch: master Commit: 9448c7162e39f527cdffc3e6f7f86eb4e289d4e5 URL: https://gitlab.winehq.org/wine/wine/-/commit/9448c7162e39f527cdffc3e6f7f86eb...
Author: Matteo Bruni mbruni@codeweavers.com Date: Thu Jul 6 14:10:31 2023 +0200
wined3d: Don't call wined3d_texture_load() from wined3d_context_gl_apply_blit_state().
It really isn't supposed to be its responsibility. All the callers of the function (which are blitters) take care of it already.
---
dlls/wined3d/context_gl.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c index a32fc4ceb78..cd03f945d38 100644 --- a/dlls/wined3d/context_gl.c +++ b/dlls/wined3d/context_gl.c @@ -3252,8 +3252,6 @@ void wined3d_context_gl_apply_blit_state(struct wined3d_context_gl *context_gl, { if (context->render_offscreen) { - wined3d_texture_load(rt, context, FALSE); - wined3d_context_gl_apply_fbo_state_blit(context_gl, GL_DRAW_FRAMEBUFFER, &rt->resource, context->current_rt.sub_resource_idx, NULL, 0, rt->resource.draw_binding); if (rt->resource.format->id != WINED3DFMT_NULL)