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