diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index 8781cc5745..c046f7c3b8 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -134,6 +134,7 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index) return -1; } state->videodriver = argv[index]; + SDL_SetHint(SDL_HINT_VIDEODRIVER, state->videodriver); return 2; } if (SDL_strcasecmp(argv[index], "--renderer") == 0) {