diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 5546d4a61..5bf4775b5 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -348,8 +348,7 @@ SDL_GetRendererOutputSize(SDL_Renderer * renderer, int *w, int *h) return 0; } else { /* This should never happen */ - SDL_SetError("Renderer doesn't support querying output size"); - return -1; + return SDL_SetError("Renderer doesn't support querying output size"); } }