浏览代码

Allow running tests with the dummy video driver

Sam Lantinga 2 年之前
父节点
当前提交
7df721d4e9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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) {