Skip flush screen after palette change

Fixes issue with black screen on new game after show the introduction video
This commit is contained in:
Denis Pauk 2019-09-05 23:09:12 +03:00
parent 90c2ac8946
commit 7435283213

View file

@ -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();
}