Commit 3c99be0d by Alexis Hetu Committed by Alexis Hétu

Sampler object fix

The code was not allowing to unset a sampler object from a texture, so the faulty condition was removed to fix the issue. Fixes 30 tests in: dEQP.functional.samplers.* Change-Id: Ibbc3389d3d6135db7bc5a2f87f0df5527b78c7fd Reviewed-on: https://swiftshader-review.googlesource.com/7360Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent e12780d5
......@@ -1284,10 +1284,7 @@ bool Context::bindSampler(GLuint unit, GLuint sampler)
Sampler* samplerObject = getSampler(sampler);
if(sampler)
{
mState.sampler[unit] = samplerObject;
}
mState.sampler[unit] = samplerObject;
return !!samplerObject;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment