glGenVertexArraysOES error handling bug fix