diff options
author | Ian Romanick <[email protected]> | 2003-09-09 00:10:12 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2003-09-09 00:10:12 +0000 |
commit | 0207b47aafebc06cf83fbdb8c9b01f63374fac66 (patch) | |
tree | 94c2117044f7976487c29cfae65b62198d9f921d /src/mesa/main/context.c | |
parent | 0a363f4e87742680ac9193c3a276f5e93ac6adef (diff) |
Added most of the infrastructure required to support
ARB_vertex_buffer_object. THIS IS INCOMPLETE.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 9151c74899f..dea778c39a9 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -840,6 +840,8 @@ alloc_shared_state( GLcontext *ctx ) goto cleanup; #endif + ss->BufferObjects = _mesa_NewHashTable(); + ss->Default1D = (*ctx->Driver.NewTextureObject)(ctx, 0, GL_TEXTURE_1D); if (!ss->Default1D) goto cleanup; @@ -895,6 +897,9 @@ alloc_shared_state( GLcontext *ctx ) if (ss->DefaultFragmentProgram) _mesa_delete_program(ctx, ss->DefaultFragmentProgram); #endif + if (ss->BufferObjects) + _mesa_DeleteHashTable(ss->BufferObjects); + if (ss->Default1D) (*ctx->Driver.DeleteTexture)(ctx, ss->Default1D); if (ss->Default2D) @@ -972,6 +977,8 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss ) _mesa_DeleteHashTable(ss->Programs); #endif + _mesa_DeleteHashTable(ss->BufferObjects); + _glthread_DESTROY_MUTEX(ss->Mutex); FREE(ss); |