mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Skip flush screen after palette change
Fixes issue with black screen on new game after show the introduction video
This commit is contained in:
parent
90c2ac8946
commit
7435283213
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue