GPU: Fix segfault when copying to Vulkan swapchain (#15543)

(cherry picked from commit 76f8705c12)
This commit is contained in:
Evan Hemsley
2026-05-11 11:42:11 -07:00
committed by cosmonaut
parent 2b7c3d8a6c
commit d348116157

View File

@@ -2452,6 +2452,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 *,