From 6629a35559ff7e3b993966f697f7c7f68e5a38d9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 19 Jun 2009 09:58:51 -0600 Subject: [PATCH] mesa: create/destroy buffer objects via driver functions --- src/mesa/main/shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 731a1540408..104f18f545a 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -97,7 +97,7 @@ _mesa_alloc_shared_state(GLcontext *ctx) * it never gets deleted. * XXX with recent/improved refcounting this may not longer be needed. */ - shared->NullBufferObj = _mesa_new_buffer_object(ctx, 0, 0); + shared->NullBufferObj = ctx->Driver.NewBufferObject(ctx, 0, 0); shared->NullBufferObj->RefCount = 1000 * 1000 * 1000; shared->ArrayObjects = _mesa_NewHashTable(); @@ -350,7 +350,7 @@ _mesa_free_shared_state(GLcontext *ctx, struct gl_shared_state *shared) #endif #if FEATURE_ARB_vertex_buffer_object - _mesa_delete_buffer_object(ctx, shared->NullBufferObj); + ctx->Driver.DeleteBuffer(ctx, shared->NullBufferObj); #endif /* -- 2.30.2