mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix a gl matrix stack overflow.
I'd missed a couple of places for glPopMatrix (worse, one was push!).
This commit is contained in:
parent
8448a8f332
commit
1ef24e0404
1 changed files with 3 additions and 1 deletions
|
@ -703,7 +703,7 @@ draw_black_sky_polys (const instsurf_t *sky_chain)
|
||||||
p = p->next;
|
p = p->next;
|
||||||
}
|
}
|
||||||
if (sc->transform)
|
if (sc->transform)
|
||||||
qfglPushMatrix ();
|
qfglPopMatrix ();
|
||||||
sc = sc->tex_chain;
|
sc = sc->tex_chain;
|
||||||
}
|
}
|
||||||
qfglEnable (GL_TEXTURE_2D);
|
qfglEnable (GL_TEXTURE_2D);
|
||||||
|
@ -845,6 +845,8 @@ R_DrawSkyChain (const instsurf_t *sky_chain)
|
||||||
qfglEnd ();
|
qfglEnd ();
|
||||||
p = p->next;
|
p = p->next;
|
||||||
}
|
}
|
||||||
|
if (sc->transform)
|
||||||
|
qfglPopMatrix ();
|
||||||
sc = sc->tex_chain;
|
sc = sc->tex_chain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue