diff options
author | Brian Paul <[email protected]> | 2009-05-07 13:52:26 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-07 14:34:09 -0600 |
commit | 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a (patch) | |
tree | 6a99a5ef383290ec8cf494931f9434a736e30885 /src/mesa/main/varray.c | |
parent | 9bb6684799f00fabc313ee50be671454e498d8a9 (diff) |
mesa: reference counting for gl_array_object
Every kind of object that can be shared by multiple contexts should be
refcounted.
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r-- | src/mesa/main/varray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 4d153b1c0b2..a9c9162be1b 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1039,7 +1039,7 @@ void _mesa_init_varray(GLcontext *ctx) { ctx->Array.DefaultArrayObj = _mesa_new_array_object(ctx, 0); - ctx->Array.ArrayObj = ctx->Array.DefaultArrayObj; - + _mesa_reference_array_object(ctx, &ctx->Array.ArrayObj, + ctx->Array.DefaultArrayObj); ctx->Array.ActiveTexture = 0; /* GL_ARB_multitexture */ } |