mesa: Move sanity check of BindVertexBuffer for OpenGL ES 3.1