mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- fixed incorrect alignment of scaled world panned textures combined with per-sidedef scaling in the hardware renderer
This particular case incorrectly factored in the sidedef's scaling factor for how to calculate the offset. Fortunately this is a very rare case - a quick check yielded no maps depending on it. Should any map surface that depends on this bug a compatibility option may be needed but it doesn't seem likely that this may be the case.
This commit is contained in:
parent
a93807833a
commit
4cdfd7ff33
1 changed files with 2 additions and 2 deletions
|
@ -1033,7 +1033,7 @@ float FTexCoordInfo::RowOffset(float rowoffset) const
|
|||
}
|
||||
else
|
||||
{
|
||||
if (mWorldPanning) return rowoffset / tscale;
|
||||
if (mWorldPanning) return rowoffset;
|
||||
else return rowoffset / scale;
|
||||
}
|
||||
}
|
||||
|
@ -1055,7 +1055,7 @@ float FTexCoordInfo::TextureOffset(float textureoffset) const
|
|||
}
|
||||
else
|
||||
{
|
||||
if (mWorldPanning) return textureoffset / tscale;
|
||||
if (mWorldPanning) return textureoffset;
|
||||
else return textureoffset / scale;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue