1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Fix update buffer allocation size

This commit is contained in:
Philip Rebohle 2018-05-13 11:12:54 +02:00
parent 3fc9466a07
commit 9d4654f445
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -3014,12 +3014,12 @@ namespace dxvk {
return buffer->alloc(Size);
} else {
if (m_updateBuffer == nullptr)
m_updateBuffer = new DxvkDataBuffer(Size);
m_updateBuffer = new DxvkDataBuffer(UpdateBufferSize);
DxvkDataSlice slice = m_updateBuffer->alloc(Size);
if (slice.ptr() == nullptr) {
m_updateBuffer = new DxvkDataBuffer(Size);
m_updateBuffer = new DxvkDataBuffer(UpdateBufferSize);
slice = m_updateBuffer->alloc(Size);
}