From 51a6cb2cf5ae19e6002ee365c57f9551e7e81a7a Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Mon, 17 Mar 2025 20:41:48 -0400 Subject: [PATCH] gpu: Fix MTLLibrary dispatch data destructor (cherry picked from commit 6d0fb0a2e665f17de19555466ae8881202468448) --- src/gpu/metal/SDL_gpu_metal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/metal/SDL_gpu_metal.m b/src/gpu/metal/SDL_gpu_metal.m index 365b344806..4ab1020666 100644 --- a/src/gpu/metal/SDL_gpu_metal.m +++ b/src/gpu/metal/SDL_gpu_metal.m @@ -854,7 +854,7 @@ static MetalLibraryFunction METAL_INTERNAL_CompileShader( code, codeSize, dispatch_get_global_queue(0, 0), - ^{ /* do nothing */ }); + DISPATCH_DATA_DESTRUCTOR_DEFAULT); library = [renderer->device newLibraryWithData:data error:&error]; } else { SDL_assert(!"SDL_gpu.c should have already validated this!");