mesa: Fix VAO deletion on GL 3.1 core.
authorEric Anholt <eric@anholt.net>
Thu, 9 Aug 2012 01:44:40 +0000 (18:44 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Aug 2012 22:09:36 +0000 (15:09 -0700)
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.

src/mesa/main/arrayobj.c

index 3439ab6b5c1b8c6e7f175a568e3a5fc95000c374..9337fe7256700ae0e87a4c2b8b030e78c7eb53c9 100644 (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 */