Commit 7cd70337 by Corentin Wallez Committed by Commit Bot

Fix integer constant vertex attributes in OpenGL backend

BUG=605775 Change-Id: Ie76cae5be686478019c61c1877611bea83d7502f Reviewed-on: https://chromium-review.googlesource.com/340114Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent a2257dac
......@@ -796,11 +796,11 @@ void StateManagerGL::setAttributeCurrentData(size_t index,
mVertexAttribCurrentValues[index].FloatValues);
break;
case GL_INT:
mFunctions->vertexAttrib4iv(static_cast<GLuint>(index),
mFunctions->vertexAttribI4iv(static_cast<GLuint>(index),
mVertexAttribCurrentValues[index].IntValues);
break;
case GL_UNSIGNED_INT:
mFunctions->vertexAttrib4uiv(static_cast<GLuint>(index),
mFunctions->vertexAttribI4uiv(static_cast<GLuint>(index),
mVertexAttribCurrentValues[index].UnsignedIntValues);
break;
default: UNREACHABLE();
......
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