Ver Fonte

GPU: Fix uninitialized value in Vulkan command buffer structure

(cherry picked from commit fe6b2161bff74ce2da5d5b93c45d9f6fb7476d8d)
cosmonaut há 1 mês atrás
pai
commit
56f5a76696
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/gpu/vulkan/SDL_gpu_vulkan.c

+ 1 - 0
src/gpu/vulkan/SDL_gpu_vulkan.c

@@ -9587,6 +9587,7 @@ static SDL_GPUCommandBuffer *VULKAN_AcquireCommandBuffer(
 
     commandBuffer->autoReleaseFence = true;
 
+    commandBuffer->swapchainRequested = false;
     commandBuffer->isDefrag = 0;
 
     /* Reset the command buffer here to avoid resets being called