From ac9d30431e2c670ae134e2619be9817a99101e1d Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 24 Apr 2020 15:24:05 +0200 Subject: [PATCH] mesa/main: do not init remap-table per api MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This hasn't really been nessecary since 8386088e3dc ("dispatch: stop using _mesa_create_exec_table_es1() for GLES1."), when we stopped diverging the logic here based on the context-API. So let's simplify the code a bit. Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/context.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 958ac8cb8f0..cf46e1d124b 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -408,10 +408,7 @@ one_time_init( struct gl_context *ctx ) * unecessary creation/destruction of glsl types. */ glsl_type_singleton_init_or_ref(); - } - /* per-API one-time init */ - if (!(api_init_mask & (1 << ctx->API))) { _mesa_init_remap_table(); } -- 2.30.2