mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Fix update buffer allocation size
This commit is contained in:
parent
3fc9466a07
commit
9d4654f445
@ -3005,7 +3005,7 @@ namespace dxvk {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DxvkDataSlice D3D11DeviceContext::AllocUpdateBufferSlice(size_t Size) {
|
DxvkDataSlice D3D11DeviceContext::AllocUpdateBufferSlice(size_t Size) {
|
||||||
constexpr size_t UpdateBufferSize = 4 * 1024 * 1024;
|
constexpr size_t UpdateBufferSize = 4 * 1024 * 1024;
|
||||||
|
|
||||||
@ -3014,12 +3014,12 @@ namespace dxvk {
|
|||||||
return buffer->alloc(Size);
|
return buffer->alloc(Size);
|
||||||
} else {
|
} else {
|
||||||
if (m_updateBuffer == nullptr)
|
if (m_updateBuffer == nullptr)
|
||||||
m_updateBuffer = new DxvkDataBuffer(Size);
|
m_updateBuffer = new DxvkDataBuffer(UpdateBufferSize);
|
||||||
|
|
||||||
DxvkDataSlice slice = m_updateBuffer->alloc(Size);
|
DxvkDataSlice slice = m_updateBuffer->alloc(Size);
|
||||||
|
|
||||||
if (slice.ptr() == nullptr) {
|
if (slice.ptr() == nullptr) {
|
||||||
m_updateBuffer = new DxvkDataBuffer(Size);
|
m_updateBuffer = new DxvkDataBuffer(UpdateBufferSize);
|
||||||
slice = m_updateBuffer->alloc(Size);
|
slice = m_updateBuffer->alloc(Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user