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 7c110cb commit 9479ac0Copy full SHA for 9479ac0
src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -5886,7 +5886,10 @@ static VulkanTexture *VULKAN_INTERNAL_CreateTexture(
5886
VULKAN_TEXTURE_USAGE_MODE_UNINITIALIZED,
5887
texture);
5888
VULKAN_INTERNAL_TrackTexture(barrierCommandBuffer, texture);
5889
- VULKAN_Submit((SDL_GPUCommandBuffer *)barrierCommandBuffer);
+ if (!VULKAN_Submit((SDL_GPUCommandBuffer *)barrierCommandBuffer)) {
5890
+ VULKAN_INTERNAL_DestroyTexture(renderer, texture);
5891
+ return NULL;
5892
+ }
5893
}
5894
5895
return texture;
0 commit comments