diff options
Diffstat (limited to 'src/Pipeline/SamplerCore.cpp')
-rw-r--r-- | src/Pipeline/SamplerCore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Pipeline/SamplerCore.cpp b/src/Pipeline/SamplerCore.cpp index 403ed3bdd..ab55c036a 100644 --- a/src/Pipeline/SamplerCore.cpp +++ b/src/Pipeline/SamplerCore.cpp @@ -133,6 +133,8 @@ Vector4f SamplerCore::sampleTexture128(Pointer<Byte> &texture, Float4 uvwa[4], c { // TODO: Eliminate int-float-int conversion. lod = Float(As<Int>(lodOrBias)); + lod = Max(lod, state.minLod); + lod = Min(lod, state.maxLod); } else if(function == Base || function == Gather) { |