mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
vulkan: Always map at least 1 byte.
This commit is contained in:
parent
b46fc2fc49
commit
c95c4c32e6
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ namespace vk
|
|||
void *map(u64 offset, u64 size)
|
||||
{
|
||||
void *data = nullptr;
|
||||
CHECK_RESULT(vkMapMemory(m_device, memory->memory, offset, size, 0, &data));
|
||||
CHECK_RESULT(vkMapMemory(m_device, memory->memory, offset, std::max<u64>(size, 1u), 0, &data));
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue