From ac82643d8d5b3ad09db776e835fb967560338f45 Mon Sep 17 00:00:00 2001 From: Lundis Date: Sat, 27 Jul 2024 13:33:02 +0300 Subject: [PATCH] set the correct version check for SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE --- sdl/hints.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdl/hints.go b/sdl/hints.go index 2b2e34a8..d37004ce 100644 --- a/sdl/hints.go +++ b/sdl/hints.go @@ -8,6 +8,11 @@ package sdl #define SDL_HINT_JOYSTICK_IOKIT "" #define SDL_HINT_JOYSTICK_MFI "" + +#endif + +#if !(SDL_VERSION_ATLEAST(2,28,3)) + #define SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE "" #endif