From: Erik Faye-Lund Date: Mon, 25 Feb 2019 10:36:44 +0000 (+0100) Subject: mesa/main: remove unused macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=619b2c9a7d87621dd6e6b0e28b7abb1750b558b5;p=mesa.git mesa/main: remove unused macro The first version of this macro is unused, so let's get rid of it. Signed-off-by: Erik Faye-Lund Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 386556edeed..905580f33b8 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -44,13 +44,6 @@ #include "varray.h" - -#define CHECK_EXTENSION(EXTNAME, CAP) \ - if (!ctx->Extensions.EXTNAME) { \ - goto invalid_enum_error; \ - } - - static void update_derived_primitive_restart_state(struct gl_context *ctx) { @@ -170,7 +163,6 @@ _mesa_DisableClientState( GLenum cap ) } -#undef CHECK_EXTENSION #define CHECK_EXTENSION(EXTNAME, CAP) \ if (!ctx->Extensions.EXTNAME) { \ goto invalid_enum_error; \