Only apply NV BDA workaround on replay if it was applied on capture

* Applying it during capture ensures that we have enough room on replay to apply
  the same expansion.
This commit is contained in:
baldurk committed 2025-08-28 11:08:25 +01:00
1 parent e55ed4e9d5
commit aecfcaca35
1 file changed
+1 -1
@@ -350,7 +350,7 @@ bool WrappedVulkan::Serialise_vkAllocateMemory(SerialiserType &ser, VkDevice dev
}
// apply workaround for presumed windows bug
if(GetDriverInfo().NVUnalignedBDAIssue())
if(GetDriverInfo().NVUnalignedBDAIssue() && ser.VersionAtLeast(0x17))
{
// all memory allocations must be 64kB aligned. The rest of the workaround only applies during capture
patched.allocationSize = AlignUp(patched.allocationSize, VkDeviceSize(64 * 1024));