Don't pass mipLevel to textureSize() for rectangle textures

This commit is contained in:
baldurk
2016-04-02 18:02:46 +02:00
parent 5888c09ba0
commit caf2e2c20d
+2 -2
View File
@@ -84,7 +84,7 @@ uvec4 SampleTextureUInt4(vec2 pos, int type, bool flipY, int mipLevel, float sli
}
else if (type == RESTYPE_TEXRECT)
{
ivec2 size = textureSize(texUInt2DRect, mipLevel);
ivec2 size = textureSize(texUInt2DRect);
if (flipY)
pos.y = size.y - pos.y;
@@ -170,7 +170,7 @@ ivec4 SampleTextureSInt4(vec2 pos, int type, bool flipY, int mipLevel, float sli
}
else if (type == RESTYPE_TEXRECT)
{
ivec2 size = textureSize(texSInt2DRect, mipLevel);
ivec2 size = textureSize(texSInt2DRect);
if (flipY)
pos.y = size.y - pos.y;