mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Implement fade_screen_black() using fullscreen_tint_gl() in GL modes.
git-svn-id: https://svn.eduke32.com/eduke32@3264 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
abb54958e1
commit
4caab915ec
1 changed files with 3 additions and 3 deletions
|
@ -2417,13 +2417,13 @@ static void setpalettefade_calc(uint8_t offset);
|
||||||
|
|
||||||
void fade_screen_black(int32_t moreopaquep)
|
void fade_screen_black(int32_t moreopaquep)
|
||||||
{
|
{
|
||||||
|
#ifdef USE_OPENGL
|
||||||
if (getrendermode() >= 3)
|
if (getrendermode() >= 3)
|
||||||
{
|
{
|
||||||
// we have a ~1 px horizontal line if we don't shift y by -1,
|
fullscreen_tint_gl(0,0,0, moreopaquep ? 168 : 84);
|
||||||
// might need a fix in rotatesprite!
|
|
||||||
rotatesprite_fs(0, -(1<<16), 65536<<3, 0, 0,0,4,10+16+1+((!moreopaquep)*32)+1024); // tile 0: 64x32
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Bassert(!offscreenrendering);
|
Bassert(!offscreenrendering);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue