SDL/src/gpu
William Horvath 8df04368b3 gpu_vulkan: Set texture container before transitioning to default barrier state.
Avoids a null dereference of currentRegion->vulkanTexture->container in DefragmentMemory:

} else if (!currentRegion->isBuffer && !currentRegion->vulkanTexture->markedForDestroy) {
...
&currentRegion->vulkanTexture->container->header.info
... (among others)

by not "VULKAN_Submit"ting (and thus adding it to the defrag pool) before setting the container.

Although rare (defrag almost never ran), this crash happened in a real-world application.

(cherry picked from commit 06bf8d1924)
2026-02-17 14:13:03 -08:00
..
d3d12 GPU: Allow D3D12 backend to load vendored D3D12Core.dll (#14946) 2026-02-02 11:40:08 -08:00
metal Reference count window claim calls for a given GPU device 2026-01-29 14:05:13 -08:00
vulkan gpu_vulkan: Set texture container before transitioning to default barrier state. 2026-02-17 14:13:03 -08:00
SDL_gpu.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_sysgpu.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00