From d67e977fb1ee353d3b6e56eb2836626b1d3f119f Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 22 Feb 2014 08:02:13 +0000 Subject: [PATCH] Further optimize our SDL_Renderer for 8-bit by making the SDL_Texture SDL_TEXTUREACCESS_STATIC, saving some RAM without any loss of functionality. git-svn-id: https://svn.eduke32.com/eduke32@4341 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index fe16148d2..2845e1d62 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -1510,7 +1510,7 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs) else { sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, - SDL_TEXTUREACCESS_STREAMING, x, y); + SDL_TEXTUREACCESS_STATIC, x, y); if (!sdl_texture) { initprintf("Falling back to SDL_GetWindowSurface: SDL_CreateTexture failed: %s\n",