mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +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());
|
Com_Printf("Can't lock texture: %s\n", SDL_GetError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// only cleanup texture without flush texture to screen
|
||||||
memset(pixels, 0, pitch * vid.height);
|
memset(pixels, 0, pitch * vid.height);
|
||||||
SDL_UnlockTexture(texture);
|
SDL_UnlockTexture(texture);
|
||||||
|
|
||||||
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
|
||||||
SDL_RenderPresent(renderer);
|
|
||||||
|
|
||||||
// All changes flushed
|
// All changes flushed
|
||||||
VID_NoDamageBuffer();
|
VID_NoDamageBuffer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue