From 543ab622e2c7e8a53749025f243c5c8b205da063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aida=20Jonikien=C4=97?= Date: Fri, 16 Aug 2024 16:52:28 +0300 Subject: [PATCH] wined3d: Don't reject blits coming from older command stream. This is a partial revert of commit db6f95880c2631b64e48adc547d365e878ae45a6. GTA 2 is missing non-text textures after exiting from the game to the menu screen when cross-CS thread blits are completely rejected. --- dlls/wined3d/texture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index 2efdaf91438..154f4a13733 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -3902,9 +3902,10 @@ HRESULT CDECL wined3d_device_context_blt(struct wined3d_device_context *context, return WINED3DERR_INVALIDCALL; } - if (dst_texture->resource.device != src_texture->resource.device) + if (src_texture->resource.device->cs->thread_id > dst_texture->resource.device->cs->thread_id + || src_texture->resource.device->cs > dst_texture->resource.device->cs) { - FIXME("Rejecting cross-device blit.\n"); + FIXME("Rejecting blit from newer command stream.\n"); return E_NOTIMPL; }