diff options
author | Brian Paul <[email protected]> | 2009-09-19 12:58:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-19 16:43:16 -0600 |
commit | 651cffd626a82d9bf539437ca4bdf8ea4b396fab (patch) | |
tree | 4c9d7e17e7d1ae78bc62dfffc4183bef8e92db5c /src/mesa/main/context.c | |
parent | b8477f079bd72d15b2d4e9c1453374d744da5ce7 (diff) |
mesa: move _mesa_meta_init/free() calls to core Mesa
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index f6d4ac45957..4c69e688da6 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -149,6 +149,7 @@ #include "version.h" #include "viewport.h" #include "vtxfmt.h" +#include "drivers/common/meta.h" #include "glapi/glthread.h" #include "glapi/glapioffsets.h" #include "glapi/glapitable.h" @@ -926,6 +927,8 @@ _mesa_initialize_context(GLcontext *ctx, _mesa_initialize_context_extra(ctx); #endif + _mesa_meta_init(ctx); + ctx->FirstTimeCurrent = GL_TRUE; return GL_TRUE; @@ -991,6 +994,8 @@ _mesa_free_context_data( GLcontext *ctx ) _mesa_make_current(ctx, NULL, NULL); } + _mesa_meta_free(ctx); + /* unreference WinSysDraw/Read buffers */ _mesa_reference_framebuffer(&ctx->WinSysDrawBuffer, NULL); _mesa_reference_framebuffer(&ctx->WinSysReadBuffer, NULL); |