From 84c8f38038c625026b46608b62be76ef40a60ad8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Apr 2016 00:45:48 +0200 Subject: [PATCH] - fixed: The divisions in FTexCoordInfo::TextureOffset and RowOffset were turned into multiplications when converting to floating point. --- src/gl/textures/gl_material.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gl/textures/gl_material.cpp b/src/gl/textures/gl_material.cpp index 40e2931a6..60a53fda3 100644 --- a/src/gl/textures/gl_material.cpp +++ b/src/gl/textures/gl_material.cpp @@ -332,12 +332,12 @@ float FTexCoordInfo::RowOffset(float rowoffset) const if (mTempScale.Y == 1.f) { if (mScale.Y == 1.f || mWorldPanning) return rowoffset; - else return rowoffset * mScale.Y; + else return rowoffset / mScale.Y; } else { - if (mWorldPanning) return rowoffset * mTempScale.Y; - else return rowoffset * mScale.Y; + if (mWorldPanning) return rowoffset / mTempScale.Y; + else return rowoffset / mScale.Y; } } @@ -352,12 +352,12 @@ float FTexCoordInfo::TextureOffset(float textureoffset) const if (mTempScale.X == 1.f) { if (mScale.X == 1.f || mWorldPanning) return textureoffset; - else return textureoffset * mScale.X; + else return textureoffset / mScale.X; } else { - if (mWorldPanning) return textureoffset * mTempScale.X; - else return textureoffset * mScale.X; + if (mWorldPanning) return textureoffset / mTempScale.X; + else return textureoffset / mScale.X; } }