mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 20:31:02 +00:00
Don't pass mipLevel to textureSize() for rectangle textures
This commit is contained in:
@@ -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