Browse Source

gpu: Fix MTLLibrary dispatch data destructor

Caleb Cornett 5 tháng trước cách đây
mục cha
commit
6d0fb0a2e6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/gpu/metal/SDL_gpu_metal.m

+ 1 - 1
src/gpu/metal/SDL_gpu_metal.m

@@ -858,7 +858,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!");