mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-06 20:31:35 +00:00
Don't pass mipLevel to textureSize() for rectangle textures
This commit is contained in:
1 parent
5888c09ba0
commit
caf2e2c20d
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user