mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-28 14:31:15 +00:00
OpenGL: Fix possible situation where an extra texture may be either taller than intended, or crossing itself
This commit is contained in:
parent
9c06fc36e1
commit
050791919b
1 changed files with 4 additions and 4 deletions
|
@ -1290,9 +1290,9 @@ static void HWR_GetExtraTextureCoords(unsigned which, side_t *side, sector_t *se
|
||||||
if (IS_UPPER_EDGE_TEXTURE(which))
|
if (IS_UPPER_EDGE_TEXTURE(which))
|
||||||
{
|
{
|
||||||
polytop = frontcoords[0] + rowoffset;
|
polytop = frontcoords[0] + rowoffset;
|
||||||
polybottom = frontcoords[0] - midtexheight;
|
polybottom = polytop - midtexheight;
|
||||||
polytopslope = frontcoords[1] + rowoffset;
|
polytopslope = frontcoords[1] + rowoffset;
|
||||||
polybottomslope = frontcoords[1] - midtexheight;
|
polybottomslope = polytopslope - midtexheight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1307,9 +1307,9 @@ static void HWR_GetExtraTextureCoords(unsigned which, side_t *side, sector_t *se
|
||||||
if (IS_UPPER_EDGE_TEXTURE(which))
|
if (IS_UPPER_EDGE_TEXTURE(which))
|
||||||
{
|
{
|
||||||
polytop = backcoords[2] + rowoffset;
|
polytop = backcoords[2] + rowoffset;
|
||||||
polybottom = backcoords[2] - midtexheight;
|
polybottom = polytop - midtexheight;
|
||||||
polytopslope = backcoords[3] + rowoffset;
|
polytopslope = backcoords[3] + rowoffset;
|
||||||
polybottomslope = backcoords[3] - midtexheight;
|
polybottomslope = polytopslope - midtexheight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue