diff options
author | Brian Paul <[email protected]> | 2009-05-13 09:27:31 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-13 09:27:31 -0600 |
commit | 5568f2f601fbd974af402da92548904f6fafc6dc (patch) | |
tree | 41877fb0a4cb8ae26345d125db349b789e92e5e9 /src/mesa/main/varray.c | |
parent | 46b81b0cc883df0ef7d998be36ae6cbf80257cd2 (diff) |
mesa: reference counting for gl_array_object
Every kind of object that can be shared by multiple contexts should be
refcounted.
(cherry picked from commit 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a)
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 106252e4609..72b3e834b3a 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1050,7 +1050,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 */ } |