Add various graphics improvements

This commit is contained in:
Wojtek Figat
2026-02-25 18:23:49 +01:00
parent b535791c66
commit 153b16ebd7
4 changed files with 9 additions and 3 deletions

View File

@@ -876,7 +876,7 @@ void GPUContextDX11::Flush()
void GPUContextDX11::UpdateBuffer(GPUBuffer* buffer, const void* data, uint32 size, uint32 offset)
{
ASSERT(data);
ASSERT(buffer && buffer->GetSize() >= size);
ASSERT(buffer && buffer->GetSize() >= size + offset);
auto bufferDX11 = (GPUBufferDX11*)buffer;