From 645721a6797aaa07da2c2c2b50a05d7ca9f5e24a Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 6 Dec 2024 11:39:46 -0800 Subject: [PATCH] Fix Metal implementation --- src/gpu/metal/SDL_gpu_metal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/metal/SDL_gpu_metal.m b/src/gpu/metal/SDL_gpu_metal.m index 3d7324fb9d35b..ebea8d5f9984a 100644 --- a/src/gpu/metal/SDL_gpu_metal.m +++ b/src/gpu/metal/SDL_gpu_metal.m @@ -3823,7 +3823,7 @@ static bool METAL_SetAllowedFramesInFlight( Uint32 allowedFramesInFlight) { @autoreleasepool { - MetalRenderer *renderer = metalCommandBuffer->renderer; + MetalRenderer *renderer = (MetalRenderer *)driverData; if (!METAL_Wait(driverData)) { return false;