mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
Allow running tests with the dummy video driver
This commit is contained in:
@@ -134,6 +134,7 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
state->videodriver = argv[index];
|
state->videodriver = argv[index];
|
||||||
|
SDL_SetHint(SDL_HINT_VIDEODRIVER, state->videodriver);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
if (SDL_strcasecmp(argv[index], "--renderer") == 0) {
|
if (SDL_strcasecmp(argv[index], "--renderer") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user