From 208fdac73a9b7f8f511f0ec8eeb5c09d4577b3a4 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 3 May 2010 21:12:46 -0400 Subject: mesa: Only initialize save dispatch table for OpenGL --- src/mesa/vbo/vbo_context.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/vbo/vbo_context.c') diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index e3be39a342..13148fc3e2 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -199,7 +199,8 @@ GLboolean _vbo_CreateContext( GLcontext *ctx ) */ vbo_exec_init( ctx ); #if FEATURE_dlist - vbo_save_init( ctx ); + if (ctx->API == API_OPENGL) + vbo_save_init( ctx ); #endif _math_init_eval(); @@ -233,7 +234,8 @@ void _vbo_DestroyContext( GLcontext *ctx ) vbo_exec_destroy(ctx); #if FEATURE_dlist - vbo_save_destroy(ctx); + if (ctx->API == API_OPENGL) + vbo_save_destroy(ctx); #endif FREE(vbo); ctx->swtnl_im = NULL; -- cgit v1.2.3