mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-22 01:11:49 +00:00
- call SetData in VKBuffer::Lock so that the buffer is valid.
This allows models to render, but a proper fix should handle mapping of static buffers for real. This workaround just allocates a non-static persistent buffer in CPU memory which is not the most efficient solution here.
This commit is contained in:
parent
10e62e7b5d
commit
d500cedf49
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ void VKBuffer::Unmap()
|
||||||
|
|
||||||
void *VKBuffer::Lock(unsigned int size)
|
void *VKBuffer::Lock(unsigned int size)
|
||||||
{
|
{
|
||||||
|
SetData(size, nullptr, false);
|
||||||
if (!mPersistent)
|
if (!mPersistent)
|
||||||
map = mBuffer->Map(0, size);
|
map = mBuffer->Map(0, size);
|
||||||
return map;
|
return map;
|
||||||
|
|
Loading…
Reference in a new issue