Support FOF texture scaling in OpenGL

This commit is contained in:
spherallic 2023-06-29 14:19:16 +02:00
parent cc852ef0fe
commit cffce82371

View file

@ -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)
{ {