mesa: Fix VAO deletion on GL 3.1 core.

We were calling through a dispatch table entry that was NULL, since the apple
variant is only on legacy desktop.  Just call the function we mean instead of
indirecting through the dispatch.
This commit is contained in:
Eric Anholt
2012-08-08 18:44:40 -07:00
committed by Ian Romanick
parent 8a4d560796
commit 7d8d1c7819

View File

@@ -457,7 +457,7 @@ _mesa_DeleteVertexArraysAPPLE(GLsizei n, const GLuint *ids)
* becomes current."
*/
if ( obj == ctx->Array.ArrayObj ) {
CALL_BindVertexArrayAPPLE( ctx->Exec, (0) );
_mesa_BindVertexArray(0);
}
/* The ID is immediately freed for re-use */