From 3dd45c65618069a64ace5b68fa887964900fd698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 24 Nov 2022 11:02:21 +0100 Subject: [PATCH] Can't forget the texture in the callback, breaks texture-from-framebuffer-copy. Was probably redundant anyway. --- GPU/D3D11/DrawEngineD3D11.cpp | 1 - GPU/GLES/DrawEngineGLES.cpp | 1 - GPU/Vulkan/DrawEngineVulkan.cpp | 2 -- 3 files changed, 4 deletions(-) diff --git a/GPU/D3D11/DrawEngineD3D11.cpp b/GPU/D3D11/DrawEngineD3D11.cpp index 37343f852a..3d66b8c37d 100644 --- a/GPU/D3D11/DrawEngineD3D11.cpp +++ b/GPU/D3D11/DrawEngineD3D11.cpp @@ -330,7 +330,6 @@ VertexArrayInfoD3D11::~VertexArrayInfoD3D11() { void DrawEngineD3D11::Invalidate(InvalidationFlags flags) { if (flags & InvalidationFlags::RENDER_PASS_STATE) { gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS); - textureCache_->ForgetLastTexture(); } } diff --git a/GPU/GLES/DrawEngineGLES.cpp b/GPU/GLES/DrawEngineGLES.cpp index 098dc4d26c..e250da4be2 100644 --- a/GPU/GLES/DrawEngineGLES.cpp +++ b/GPU/GLES/DrawEngineGLES.cpp @@ -248,7 +248,6 @@ void DrawEngineGLES::Invalidate(InvalidationFlags flags) { if (flags & InvalidationFlags::RENDER_PASS_STATE) { // Dirty everything that has dynamic state that will need re-recording. gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_BLEND_STATE | DIRTY_RASTER_STATE | DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS); - textureCache_->ForgetLastTexture(); } } diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index b4aa4532b7..8256ea8916 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -550,8 +550,6 @@ void DrawEngineVulkan::Invalidate(InvalidationFlags flags) { } if (flags & InvalidationFlags::RENDER_PASS_STATE) { // If have a new render pass, dirty our dynamic state so it gets re-set. - // We have to do this again after the last possible place in DoFlush that can cause a renderpass switch - // like a shader blend blit or similar. But before we actually set the state! // // Dirty everything that has dynamic state that will need re-recording. gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_BLEND_STATE | DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS);