From: Eric Anholt Date: Thu, 9 Aug 2012 01:44:40 +0000 (-0700) Subject: mesa: Fix VAO deletion on GL 3.1 core. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d8d1c781967e0c29b0523e2c8056c2d7412dd60;p=mesa.git 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. --- diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 3439ab6b5c1..9337fe72567 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -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 */