gpu: Fix MTLLibrary dispatch data destructor

(cherry picked from commit 6d0fb0a2e6)
This commit is contained in:
Caleb Cornett authored and Sam Lantinga committed 2025-03-17 18:54:30 -07:00
1 parent daf468e141
commit 51a6cb2cf5
1 file changed
+1 -1
+1 -1
View File
@@ -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!");