mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU/Vulkan: Only update sample texture when render area dirty
Fixes crash when using Show VRAM in some games with Vulkan.
This commit is contained in:
parent
16ad54143b
commit
a0a24c7752
|
@ -1214,7 +1214,13 @@ void GPU_HW_Vulkan::UpdateDisplay()
|
|||
{
|
||||
if (IsUsingMultisampling())
|
||||
{
|
||||
UpdateVRAMReadTexture();
|
||||
if (m_vram_dirty_rect.Intersects(
|
||||
Common::Rectangle<u32>::FromExtents(m_crtc_state.display_vram_left, m_crtc_state.display_vram_top,
|
||||
m_crtc_state.display_vram_width, m_crtc_state.display_vram_height)))
|
||||
{
|
||||
UpdateVRAMReadTexture();
|
||||
}
|
||||
|
||||
m_host_display->SetDisplayTexture(&m_vram_read_texture, HostDisplayPixelFormat::RGBA8,
|
||||
m_vram_read_texture.GetWidth(), m_vram_read_texture.GetHeight(), 0, 0,
|
||||
m_vram_read_texture.GetWidth(), m_vram_read_texture.GetHeight());
|
||||
|
|
Loading…
Reference in a new issue