reset uniform buffer offset when acquiring
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
62789005dd
commit
8e04b357db
|
@ -3527,6 +3527,8 @@ static VulkanUniformBuffer* VULKAN_INTERNAL_AcquireUniformBufferFromPool(
|
|||
VulkanUniformBuffer *uniformBuffer = bufferPool->availableBuffers[bufferPool->availableBufferCount - 1];
|
||||
bufferPool->availableBufferCount -= 1;
|
||||
|
||||
uniformBuffer->offset = 0;
|
||||
|
||||
SDL_UnlockMutex(bufferPool->lock);
|
||||
return uniformBuffer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue