mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Fix minmax incorrect always sampling from 2D texture (OpenGL)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user