mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 03:28:57 +00:00
GPU: Fix segfault when copying to Vulkan swapchain (#15543)
This commit is contained in:
parent
7ec70d39c4
commit
76f8705c12
1 changed files with 5 additions and 0 deletions
|
|
@ -2500,6 +2500,11 @@ static void VULKAN_INTERNAL_TrackTextureTransfer(
|
|||
VulkanCommandBuffer *commandBuffer,
|
||||
VulkanTexture *texture)
|
||||
{
|
||||
// Textures not managed by our allocator (i.e. the swapchain) don't need to be refcounted.
|
||||
if (texture->usedRegion == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
TRACK_RESOURCE(
|
||||
texture,
|
||||
VulkanTexture *,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue