Commit 8e098376 by Alexis Hetu Committed by Alexis Hétu

Copy-paste error fixed

Fixed 2 occurrences of setCompareMode being used instead of setImmutableFormat and added a missing break statement. Change-Id: I1013d0983220ba155dcd4f6255c6e089f03e7fc8 Reviewed-on: https://swiftshader-review.googlesource.com/4016Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent c557bf99
......@@ -5928,7 +5928,7 @@ void TexParameterf(GLenum target, GLenum pname, GLfloat param)
}
break;
case GL_TEXTURE_IMMUTABLE_FORMAT:
if(clientVersion < 3 || !texture->setCompareMode((GLboolean)param))
if(clientVersion < 3 || !texture->setImmutableFormat((GLboolean)param))
{
return error(GL_INVALID_VALUE);
}
......@@ -6082,8 +6082,9 @@ void TexParameteri(GLenum target, GLenum pname, GLint param)
{
return error(GL_INVALID_VALUE);
}
break;
case GL_TEXTURE_IMMUTABLE_FORMAT:
if(clientVersion < 3 || !texture->setCompareMode((GLboolean)param))
if(clientVersion < 3 || !texture->setImmutableFormat((GLboolean)param))
{
return error(GL_INVALID_VALUE);
}
......
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