mesa/main: do not init remap-table per api
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 24 Apr 2020 13:24:05 +0000 (15:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 20:40:01 +0000 (20:40 +0000)
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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4765>

src/mesa/main/context.c

index 958ac8cb8f0cc05c07daaadd178a89b71b41cc07..cf46e1d124b5ed715befeb7567d60f5744b76e9e 100644 (file)
@@ -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();
    }