mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Hack for fake multimode/splitscreen: also draw mirrors from showview*.
See the source for why this hack is ugly. git-svn-id: https://svn.eduke32.com/eduke32@2891 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
cb812625a7
commit
27ebcc41b4
1 changed files with 10 additions and 1 deletions
|
@ -3414,7 +3414,16 @@ void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, i
|
||||||
visibility = j;
|
visibility = j;
|
||||||
}
|
}
|
||||||
|
|
||||||
gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7));
|
if (!g_fakeMultiMode)
|
||||||
|
{
|
||||||
|
// HACK for splitscreen mod: this is so that mirrors will be drawn
|
||||||
|
// from showview commands. Ugly, because we'll attempt do draw mirrors
|
||||||
|
// each frame then. But it's better than not drawing them, I guess.
|
||||||
|
// XXX: fix the sequence of setting/clearing this bit. Right now,
|
||||||
|
// we always draw one frame without drawing the mirror, after which
|
||||||
|
// the bit gets set and drawn subsequently.
|
||||||
|
gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue