From 194dd16504618592dea70965c4fdd6744873afab Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 17 Dec 2014 18:21:40 +0000 Subject: [PATCH] Fix minmax incorrect always sampling from 2D texture (OpenGL) --- renderdoc/data/glsl/histogram.comp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/data/glsl/histogram.comp b/renderdoc/data/glsl/histogram.comp index 4c63dd1a4..55caf8e63 100644 --- a/renderdoc/data/glsl/histogram.comp +++ b/renderdoc/data/glsl/histogram.comp @@ -128,7 +128,7 @@ void main() { for(uint x=topleft.x; x < min(texDim.x, topleft.x + HGRAM_PIXELS_PER_TILE); x++) { - vec4 data = SampleTextureFloat4(vec2(x, y), RESTYPE_TEX2D, false, + vec4 data = SampleTextureFloat4(vec2(x, y), texType, false, HistogramMip, HistogramSlice, HistogramSample, HistogramNumSamples); if(i == 0)