Browse Source

gpu: Fix MTLLibrary dispatch data destructor

(cherry picked from commit 6d0fb0a2e665f17de19555466ae8881202468448)
Caleb Cornett 1 month ago
parent
commit
51a6cb2cf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gpu/metal/SDL_gpu_metal.m

+ 1 - 1
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!");