diff options
author | Brian Paul <[email protected]> | 2009-06-19 09:58:51 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-19 09:58:51 -0600 |
commit | 6629a35559ff7e3b993966f697f7c7f68e5a38d9 (patch) | |
tree | 16f12fd0c3bce662ebf008f4121197db6bbfe4e9 /src/mesa/main/shared.c | |
parent | e164210f6511f4f1e5b2227e38b24b994e1a5ffc (diff) |
mesa: create/destroy buffer objects via driver functions
Diffstat (limited to 'src/mesa/main/shared.c')
-rw-r--r-- | src/mesa/main/shared.c | 4 |
1 files 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 /* |