Add the type to SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1

This commit is contained in:
Sam Lantinga
2026-01-25 09:11:17 -08:00
parent d311b5c779
commit 17c375738f
2 changed files with 4 additions and 4 deletions

View File

@@ -4529,7 +4529,7 @@ static SDL_GPUDevice *METAL_CreateDevice(bool debugMode, bool preferLowPower, SD
hasHardwareSupport = true;
bool allowMacFamily1 = SDL_GetBooleanProperty(
props,
SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1,
SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN,
false);
if (@available(macOS 10.15, *)) {
hasHardwareSupport = allowMacFamily1 ?