Fixed UV contraction for the texture in the top-left corner of the texture map (0, 0), see sp614x/optifine#1024 (#4703)

This commit is contained in:
malte0811 authored and LexManos committed 2018-01-28 16:09:05 -08:00
1 parent 3b580f643e
commit c12df92170
1 file changed
+2 -2
@@ -180,8 +180,8 @@ public class UnpackedBakedQuad extends BakedQuad
}
if(contractUVs)
{
float tX = texture.getOriginX() / texture.getMinU();
float tY = texture.getOriginY() / texture.getMinV();
float tX = texture.getIconWidth() / (texture.getMaxU() - texture.getMinU());
float tY = texture.getIconHeight() / (texture.getMaxV() - texture.getMinV());
float tS = tX > tY ? tX : tY;
float ep = 1f / (tS * 0x100);
int uve = 0;