From 93bf53426840fd052da2aeb6d5a5a6f380f4c21a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 14 Sep 2024 19:19:13 -0400 Subject: [PATCH] testgpu_simple_clear: Fixed AppInit return values. --- test/testgpu_simple_clear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testgpu_simple_clear.c b/test/testgpu_simple_clear.c index ea9d2eb6f..fe829b173 100644 --- a/test/testgpu_simple_clear.c +++ b/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());