Commit ede04d36 by Alexis Hetu Committed by Alexis Hétu

Implemented GL_SAMPLER_BINDING query

Sampler objects already exist, only the query was missing. Change-Id: Iea4a65ee4af149a33b262eba4fc0d6256775d1e1 Reviewed-on: https://swiftshader-review.googlesource.com/4746Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 48be735f
......@@ -2338,8 +2338,7 @@ template<typename T> bool Context::getIntegerv(GLenum pname, T *params) const
*params = GL_BACK;
break;
case GL_SAMPLER_BINDING: // GLint, default 0
UNIMPLEMENTED();
*params = 0;
*params = mState.sampler[mState.activeSampler].name();
break;
case GL_UNIFORM_BUFFER_BINDING: // name, initially 0
if(clientVersion >= 3)
......
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