Browse Source

Allow running tests with the dummy video driver

Sam Lantinga 1 year ago
parent
commit
7df721d4e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/test/SDL_test_common.c

+ 1 - 0
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) {