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:
parent
32cc5ee8f9
commit
d323d968d8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue