فهرست منبع

testthread: SDL performs thread initialization automatically

Sam Lantinga 1 هفته پیش
والد
کامیت
955698c635
1فایلهای تغییر یافته به همراه0 افزوده شده و 6 حذف شده
  1. 0 6
      test/testthread.c

+ 0 - 6
test/testthread.c

@@ -118,12 +118,6 @@ int main(int argc, char *argv[])
         i += consumed;
         i += consumed;
     }
     }
 
 
-    /* Load the SDL library */
-    if (!SDL_Init(0)) {
-        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s", SDL_GetError());
-        return 1;
-    }
-
     if (SDL_GetEnvironmentVariable(SDL_GetEnvironment(), "SDL_TESTS_QUICK") != NULL) {
     if (SDL_GetEnvironmentVariable(SDL_GetEnvironment(), "SDL_TESTS_QUICK") != NULL) {
         SDL_Log("Not running slower tests");
         SDL_Log("Not running slower tests");
         SDL_Quit();
         SDL_Quit();