mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-28 08:16:18 -04:00
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:
parent
7d60b13584
commit
8b9ef7cf8d
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ static void sdl_window_setup(void)
|
|||
if ((window = SDL_CreateWindow(UI_TITLE, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
|
||||
width * display_zoom, height * display_zoom , flags)) == NULL)
|
||||
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());
|
||||
if ((gui_surface = SDL_CreateRGBSurface(0, width * display_zoom, height * display_zoom, depth,
|
||||
0, 0, 0, 0)) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue