From 917d27392825719146a02acc684fb75f298f59ed Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 29 Sep 2012 08:47:56 -0600 Subject: [PATCH] mesa: remove unused gl_context::DriverCtx field --- src/mesa/main/context.c | 1 - src/mesa/main/mtypes.h | 2 -- src/mesa/x86/gen_matypes.c | 1 - 3 files changed, 4 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index c50504d1962..e0be048bbfd 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -934,7 +934,6 @@ _mesa_initialize_context(struct gl_context *ctx, * textures. */ ctx->Driver = *driverFunctions; - ctx->DriverCtx = driverContext; if (share_list) { /* share state with another context */ diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index e790e18c4a5..40a802f52e6 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3403,8 +3403,6 @@ struct gl_context */ struct dd_function_table Driver; - void *DriverCtx; /**< Points to device driver context/state */ - /** Core/Driver constants */ struct gl_constants Const; diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index a1d8ee67dbe..61f181cd928 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -93,7 +93,6 @@ int main( int argc, char **argv ) */ OFFSET_HEADER( "struct gl_context" ); - OFFSET( "CTX_DRIVER_CTX ", struct gl_context, DriverCtx ); printf( "\n" ); OFFSET( "CTX_LIGHT_ENABLED ", struct gl_context, Light.Enabled ); OFFSET( "CTX_LIGHT_SHADE_MODEL ", struct gl_context, Light.ShadeModel ); -- 2.30.2