mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Shadow fix.
git-svn-id: https://svn.eduke32.com/eduke32@1269 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ed3198b65f
commit
88c7967d02
1 changed files with 8 additions and 0 deletions
|
@ -3591,6 +3591,7 @@ static void polymer_culllight(char lightindex)
|
|||
static void polymer_prepareshadows(void)
|
||||
{
|
||||
int32_t i, j;
|
||||
int32_t gx, gy;
|
||||
|
||||
i = j = 0;
|
||||
|
||||
|
@ -3615,8 +3616,15 @@ static void polymer_prepareshadows(void)
|
|||
bglEnable(GL_POLYGON_OFFSET_FILL);
|
||||
bglPolygonOffset(15, 15);
|
||||
|
||||
// for wallvisible()
|
||||
gx = globalposx;
|
||||
gy = globalposy;
|
||||
|
||||
polymer_displayrooms(prlights[i].sector);
|
||||
|
||||
globalposx = gx;
|
||||
globalposy = gy;
|
||||
|
||||
bglDisable(GL_POLYGON_OFFSET_FILL);
|
||||
|
||||
bglMatrixMode(GL_PROJECTION);
|
||||
|
|
Loading…
Reference in a new issue