From: Stian Low <wineryyyyy@gmail.com> --- dlls/wined3d/swapchain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index e2d13723d6e..14dcecfac25 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -537,7 +537,7 @@ static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain, swap_interval, context_gl, GetLastError()); } } -#if 0 + static void wined3d_swapchain_rendertarget_view_gl_rotate(struct wined3d_swapchain *swapchain) { struct wined3d_swapchain_rendertarget_view_gl *swap_view_gl; @@ -570,7 +570,7 @@ static void wined3d_swapchain_rendertarget_view_gl_rotate(struct wined3d_swapcha view_gl->gl_view.name = name_prev; } } -#endif + /* Context activation is done by the caller. */ static void wined3d_swapchain_gl_rotate(struct wined3d_swapchain *swapchain, struct wined3d_context *context) { @@ -612,6 +612,8 @@ static void wined3d_swapchain_gl_rotate(struct wined3d_swapchain *swapchain, str texture_prev->texture_rgb = tex0; texture_prev->rb_multisample = rb0; + wined3d_swapchain_rendertarget_view_gl_rotate(swapchain); + wined3d_texture_validate_location(&texture_prev->t, 0, locations0 & supported_locations); wined3d_texture_invalidate_location(&texture_prev->t, 0, ~(locations0 & supported_locations)); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10567