1
0
Fork 0
forked from len0rd/rockbox

sdl: adjust texture access pattern to "frequently"

probably doesn't make much of a difference
for our use case but should prevent creation
of temp buffers

Change-Id: Ie2cbefcbd7b8f94bed340f08bf71f764a32ed1ea
This commit is contained in:
Christian Soffke 2024-12-25 19:24:32 +01:00
parent 32cc5ee8f9
commit d323d968d8

View file

@ -99,7 +99,7 @@ static void rebuild_gui_texture(void)
get_window_dimensions(&w, &h);
SDL_RenderSetLogicalSize(sdlRenderer, w, h);
if ((gui_texture = SDL_CreateTexture(sdlRenderer, SDL_MasksToPixelFormatEnum(depth,
0, 0, 0, 0), SDL_TEXTUREACCESS_STATIC, w, h)) == NULL)
0, 0, 0, 0), SDL_TEXTUREACCESS_STREAMING, w, h)) == NULL)
panicf("%s", SDL_GetError());
if (SDL_GetWindowFlags(window) & SDL_WINDOW_RESIZABLE)