Commit 94177fba by Geoff Lang Committed by Commit Bot

Length returned from glGetUniform*RobustANGLE should be in values, not bytes.

BUG=angleproject:1354 Change-Id: I805499c3514a8b323e9864b7cf9100814f3d5cc5 Reviewed-on: https://chromium-review.googlesource.com/411420Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent b0a838bf
......@@ -3463,8 +3463,7 @@ static bool ValidateSizedGetUniform(Context *context,
if (length)
{
// Cast is safe because of comparison to bufSize.
*length = static_cast<GLsizei>(requiredBytes);
*length = VariableComponentCount(uniform.type);
}
return true;
......
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