From 7d8d1c781967e0c29b0523e2c8056c2d7412dd60 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 8 Aug 2012 18:44:40 -0700 Subject: [PATCH] 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. --- src/mesa/main/arrayobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2