Skip to content

Commit

Permalink
testgpu_simple_clear: Fixed AppInit return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 14, 2024
1 parent e5bd3bb commit 93bf534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testgpu_simple_clear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 93bf534

Please sign in to comment.