Remove wrong and unnecessary check attribute check.

TRAC #12580 Wrong because it should be checking active attributes, not inactive attributes. Unnecessary because when a buffer is deleted, all the vertex attrib client state bindings are cleared. Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Andrew Lewycky git-svn-id: https://angleproject.googlecode.com/svn/trunk@359 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent cdacc8e2
...@@ -70,12 +70,6 @@ GLenum VertexDataManager::preRenderValidate(GLint start, GLsizei count, ...@@ -70,12 +70,6 @@ GLenum VertexDataManager::preRenderValidate(GLint start, GLsizei count,
for (int i = 0; i < MAX_VERTEX_ATTRIBS; i++) for (int i = 0; i < MAX_VERTEX_ATTRIBS; i++)
{ {
if (!activeAttribs[i] && attribs[i].mEnabled && attribs[i].mBoundBuffer != 0 && !mContext->getBuffer(attribs[i].mBoundBuffer))
return GL_INVALID_OPERATION;
}
for (int i = 0; i < MAX_VERTEX_ATTRIBS; i++)
{
translated[i].enabled = activeAttribs[i]; translated[i].enabled = activeAttribs[i];
} }
......
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