From caf2e2c20d44ec3416748c7eef31f7c9d4445d6f Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 2 Apr 2016 18:02:46 +0200 Subject: [PATCH] Don't pass mipLevel to textureSize() for rectangle textures --- renderdoc/data/glsl/texsample.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/data/glsl/texsample.h b/renderdoc/data/glsl/texsample.h index bd1b52d23..957918d84 100644 --- a/renderdoc/data/glsl/texsample.h +++ b/renderdoc/data/glsl/texsample.h @@ -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;