From 7d710cbf8c810142823b9f608473829de69a9574 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 11 May 2023 13:13:36 +0300 Subject: [PATCH] rsx: Do not allow 'compatible' check to pass if the size does not match - It's not worth it. We end up with a mish-mash of internal configuration parameters that don't match the surface. Maybe with more abstraction it can work, but there is little benefit. --- rpcs3/Emu/RSX/GL/GLRenderTargets.h | 4 ++-- rpcs3/Emu/RSX/VK/VKRenderTargets.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLRenderTargets.h b/rpcs3/Emu/RSX/GL/GLRenderTargets.h index 3650076c98..60dd4b6104 100644 --- a/rpcs3/Emu/RSX/GL/GLRenderTargets.h +++ b/rpcs3/Emu/RSX/GL/GLRenderTargets.h @@ -250,8 +250,8 @@ struct gl_render_target_traits { return (surface->get_internal_format() == ref->get_internal_format() && surface->get_spp() == sample_count && - surface->get_surface_width() >= width && - surface->get_surface_height() >= height); + surface->get_surface_width() == width && + surface->get_surface_height() == height); } static diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.h b/rpcs3/Emu/RSX/VK/VKRenderTargets.h index 88652d361e..81aea5858f 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.h +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.h @@ -405,8 +405,8 @@ namespace vk { return (surface->format() == ref->format() && surface->get_spp() == sample_count && - surface->get_surface_width() >= width && - surface->get_surface_height() >= height); + surface->get_surface_width() == width && + surface->get_surface_height() == height); } static void prepare_surface_for_drawing(vk::command_buffer& cmd, vk::render_target* surface)