mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
gpu: Fix MTLLibrary dispatch data destructor
This commit is contained in:

committed by
Sam Lantinga

parent
3e5664a5be
commit
6d0fb0a2e6
@@ -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!");
|
||||
|
Reference in New Issue
Block a user