Vulkan Renderer - closes #9385. When the vertex buffer size is exceeded, make sure to wait for outstanding work before resizing it. This fixes validation errors/crash found with using Imgui SDL3 renderer on Vulkan.
parent
3448273be1
commit
650ba8f3ec
|
@ -3146,6 +3146,8 @@ static SDL_bool VULKAN_UpdateVertexBuffer(SDL_Renderer *renderer,
|
|||
}
|
||||
/* If the existing vertex buffer isn't big enough, we need to recreate a big enough one */
|
||||
if (dataSizeInBytes > rendererData->vertexBuffers[vbidx].size) {
|
||||
VULKAN_IssueBatch(rendererData);
|
||||
VULKAN_WaitForGPU(rendererData);
|
||||
VULKAN_CreateVertexBuffer(rendererData, vbidx, dataSizeInBytes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue