Enable SDL3 fast parameter checks

This commit is contained in:
Cameron Gutman
2026-02-04 22:42:58 -06:00
parent 179857f17d
commit 092eb1b117

View File

@@ -691,6 +691,10 @@ int main(int argc, char *argv[])
SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "0"); SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "0");
#endif #endif
// Enable fast parameter checks on SDL 3.4.0+. We don't abuse the API by passing
// incorrect objects, so we don't need additional expensive parameter checks.
SDL_SetHint("SDL_INVALID_PARAM_CHECKS", "1");
QGuiApplication app(argc, argv); QGuiApplication app(argc, argv);
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX