mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
gpu: Fix MTLLibrary dispatch data destructor
(cherry picked from commit 6d0fb0a2e6
)
This commit is contained in:

committed by
Sam Lantinga

parent
daf468e141
commit
51a6cb2cf5
@@ -854,7 +854,7 @@ static MetalLibraryFunction METAL_INTERNAL_CompileShader(
|
|||||||
code,
|
code,
|
||||||
codeSize,
|
codeSize,
|
||||||
dispatch_get_global_queue(0, 0),
|
dispatch_get_global_queue(0, 0),
|
||||||
^{ /* do nothing */ });
|
DISPATCH_DATA_DESTRUCTOR_DEFAULT);
|
||||||
library = [renderer->device newLibraryWithData:data error:&error];
|
library = [renderer->device newLibraryWithData:data error:&error];
|
||||||
} else {
|
} else {
|
||||||
SDL_assert(!"SDL_gpu.c should have already validated this!");
|
SDL_assert(!"SDL_gpu.c should have already validated this!");
|
||||||
|
Reference in New Issue
Block a user