We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1d1ab commit 77f4a8eCopy full SHA for 77f4a8e
1 file changed
src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -9548,15 +9548,16 @@ static SDL_GPUCommandBuffer *VULKAN_AcquireCommandBuffer(
9548
VulkanCommandBuffer *commandBuffer =
9549
VULKAN_INTERNAL_GetInactiveCommandBufferFromPool(renderer, threadID);
9550
9551
+ if (commandBuffer == NULL) {
9552
+ SDL_UnlockMutex(renderer->acquireCommandBufferLock);
9553
+ return NULL;
9554
+ }
9555
+
9556
DescriptorSetCache *descriptorSetCache =
9557
VULKAN_INTERNAL_AcquireDescriptorSetCache(renderer);
9558
9559
SDL_UnlockMutex(renderer->acquireCommandBufferLock);
9560
- if (commandBuffer == NULL) {
- return NULL;
- }
-
9561
commandBuffer->descriptorSetCache = descriptorSetCache;
9562
9563
// Reset state
0 commit comments