mirror of https://github.com/PCSX2/pcsx2.git
GS/Vulkan: Actually store the readback buffer size
This being missing was causing the buffer to be reallocated every download.
This commit is contained in:
parent
da8a79a857
commit
c2cafd1a80
|
@ -1401,6 +1401,7 @@ bool GSDevice12::CheckStagingBufferSize(u32 required_size)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_readback_staging_buffer_size = required_size;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1804,6 +1804,7 @@ bool GSDeviceVK::CheckStagingBufferSize(u32 required_size)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_readback_staging_buffer_map = ai.pMappedData;
|
m_readback_staging_buffer_map = ai.pMappedData;
|
||||||
|
m_readback_staging_buffer_size = required_size;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue