mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Support FOF texture scaling in OpenGL
This commit is contained in:
parent
cc852ef0fe
commit
cffce82371
1 changed files with 4 additions and 4 deletions
|
@ -1658,8 +1658,8 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom
|
||||||
}
|
}
|
||||||
|
|
||||||
grTex = HWR_GetTexture(texnum);
|
grTex = HWR_GetTexture(texnum);
|
||||||
xscale = FIXED_TO_FLOAT(gl_sidedef->scalex_mid) * grTex->scaleX;
|
xscale = FIXED_TO_FLOAT(sides[rover->master->sidenum[0]].scalex_mid) * grTex->scaleX;
|
||||||
yscale = FIXED_TO_FLOAT(gl_sidedef->scaley_mid) * grTex->scaleY;
|
yscale = FIXED_TO_FLOAT(sides[rover->master->sidenum[0]].scaley_mid) * grTex->scaleY;
|
||||||
|
|
||||||
if (!slopeskew) // no skewing
|
if (!slopeskew) // no skewing
|
||||||
{
|
{
|
||||||
|
@ -1796,8 +1796,8 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
grTex = HWR_GetTexture(texnum);
|
grTex = HWR_GetTexture(texnum);
|
||||||
xscale = FIXED_TO_FLOAT(gl_sidedef->scalex_mid) * grTex->scaleX;
|
xscale = FIXED_TO_FLOAT(sides[rover->master->sidenum[0]].scalex_mid) * grTex->scaleX;
|
||||||
yscale = FIXED_TO_FLOAT(gl_sidedef->scaley_mid) * grTex->scaleY;
|
yscale = FIXED_TO_FLOAT(sides[rover->master->sidenum[0]].scaley_mid) * grTex->scaleY;
|
||||||
|
|
||||||
if (newline)
|
if (newline)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue