Procházet zdrojové kódy

testgpu_simple_clear: Fixed AppInit return values.

Ryan C. Gordon před 1 rokem
rodič
revize
93bf534268
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      test/testgpu_simple_clear.c

+ 2 - 2
test/testgpu_simple_clear.c

@@ -47,12 +47,12 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
 	gpu_device = SDL_CreateGPUDevice(TESTGPU_SUPPORTED_FORMATS, SDL_TRUE, NULL);
 	if (!gpu_device) {
 		SDL_Log("SDL_CreateGPUDevice failed: %s", SDL_GetError());
-		return -1;
+		return SDL_APP_FAILURE;
 	}
 
 	if (!SDL_ClaimWindowForGPUDevice(gpu_device, state->windows[0])) {
 		SDL_Log("SDL_ClaimWindowForGPUDevice failed: %s", SDL_GetError());
-		return -1;
+		return SDL_APP_FAILURE;
 	}
 
     mode = SDL_GetCurrentDisplayMode(SDL_GetPrimaryDisplay());