From 74352832136e6439cc0afd1841074d35c55f7399 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Thu, 5 Sep 2019 23:09:12 +0300 Subject: [PATCH] Skip flush screen after palette change Fixes issue with black screen on new game after show the introduction video --- src/client/refresh/soft/sw_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/refresh/soft/sw_main.c b/src/client/refresh/soft/sw_main.c index 3196f9aa..552d197d 100644 --- a/src/client/refresh/soft/sw_main.c +++ b/src/client/refresh/soft/sw_main.c @@ -1923,12 +1923,10 @@ RE_CleanFrame(void) Com_Printf("Can't lock texture: %s\n", SDL_GetError()); return; } + // only cleanup texture without flush texture to screen memset(pixels, 0, pitch * vid.height); SDL_UnlockTexture(texture); - SDL_RenderCopy(renderer, texture, NULL, NULL); - SDL_RenderPresent(renderer); - // All changes flushed VID_NoDamageBuffer(); }