From caa58aa91e5bfefccbf5345c85dd58adb29c85f1 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 29 Oct 2023 21:26:55 +0200 Subject: [PATCH 31/31] sdl3: Correct SDL_CreateRenderer() parameters See osdn #48919 Signed-off-by: Marko Lindqvist --- client/gui-sdl3/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-sdl3/graphics.c b/client/gui-sdl3/graphics.c index e275c978da..c7bb98e2d0 100644 --- a/client/gui-sdl3/graphics.c +++ b/client/gui-sdl3/graphics.c @@ -560,10 +560,10 @@ bool create_surfaces(int width, int height) || (sdl3_client_flags & CF_SWRENDERER)) { flags = SDL_RENDERER_SOFTWARE; } else { - flags = 0; + flags = SDL_RENDERER_ACCELERATED; } - main_data.renderer = SDL_CreateRenderer(main_data.screen, -1, flags); + main_data.renderer = SDL_CreateRenderer(main_data.screen, NULL, flags); if (main_data.renderer == NULL) { log_fatal(_("Failed to create renderer: %s"), SDL_GetError()); -- 2.42.0