Commit fa9744b0 by Jamie Madill

Fix support for GL_MAX_ATTRIBS attributes.

An off-by-one bug slipped in that broke support for these edge case shaders. Bug introduced in https://chromium-review.googlesource.com/#/c/266928/ BUG=angleproject:1045 BUG=500116 Change-Id: If44f809d432221d1e17afc407d49e87e0cb7504c Reviewed-on: https://chromium-review.googlesource.com/278240Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent b3e2aa92
......@@ -1291,7 +1291,7 @@ bool Program::linkAttributes(const Data &data,
GLuint maxAttribs = data.caps->maxVertexAttributes;
// TODO(jmadill): handle aliasing robustly
if (shaderAttributes.size() >= maxAttribs)
if (shaderAttributes.size() > maxAttribs)
{
infoLog << "Too many vertex attributes.";
return false;
......
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