From: Erik Faye-Lund Date: Fri, 24 Apr 2020 13:24:05 +0000 (+0200) Subject: mesa/main: do not init remap-table per api X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac9d30431e2c670ae134e2619be9817a99101e1d;p=mesa.git mesa/main: do not init remap-table per api 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: --- 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(); }