Commit 060a2d3f by Nicolas Capens

Fix glBindVertexArray() compilation regression.

Change-Id: I7da54053b3be31b4388dd9c0f4d89298e656bee2 Reviewed-on: https://swiftshader-review.googlesource.com/4556Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 29faf67e
...@@ -1741,9 +1741,14 @@ GL_APICALL void GL_APIENTRY glBindVertexArray(GLuint array) ...@@ -1741,9 +1741,14 @@ GL_APICALL void GL_APIENTRY glBindVertexArray(GLuint array)
es2::Context *context = es2::getContext(); es2::Context *context = es2::getContext();
if(context && !context->bindVertexArray(array)) if(context)
{ {
return error(GL_INVALID_OPERATION); if(!context->getVertexArray(array))
{
return error(GL_INVALID_OPERATION);
}
context->bindVertexArray(array);
} }
} }
......
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