sdl: Remove SDL_RENDERER_ACCELERATED flag

The flag would apparently make hardware accelerated
rendering  mandatory. SDL2 will still attempt to use
hardware acceleration, if the flag is missing.

Change-Id: Icfdcad90591d2a5003a1540f2a669c7e54dcfc3b
This commit is contained in:
Christian Soffke 2024-10-11 19:53:09 +02:00 committed by Solomon Peachy
parent 7d60b13584
commit 8b9ef7cf8d

View file

@ -124,7 +124,7 @@ static void sdl_window_setup(void)
if ((window = SDL_CreateWindow(UI_TITLE, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, if ((window = SDL_CreateWindow(UI_TITLE, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
width * display_zoom, height * display_zoom , flags)) == NULL) width * display_zoom, height * display_zoom , flags)) == NULL)
panicf("%s", SDL_GetError()); panicf("%s", SDL_GetError());
if ((sdlRenderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC)) == NULL) if ((sdlRenderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESENTVSYNC)) == NULL)
panicf("%s", SDL_GetError()); panicf("%s", SDL_GetError());
if ((gui_surface = SDL_CreateRGBSurface(0, width * display_zoom, height * display_zoom, depth, if ((gui_surface = SDL_CreateRGBSurface(0, width * display_zoom, height * display_zoom, depth,
0, 0, 0, 0)) == NULL) 0, 0, 0, 0)) == NULL)