Sfoglia il codice sorgente

gpu: Fix MTLLibrary dispatch data destructor

(cherry picked from commit 6d0fb0a2e665f17de19555466ae8881202468448)
Caleb Cornett 11 mesi fa
parent
commit
51a6cb2cf5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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!");