From 182d75d2a508cfd60b3b9082ce07369d3d28c32c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 25 Feb 2019 12:10:43 +0100 Subject: [PATCH] mesa/main: remove duplicate macros These are already defined as the exactly same, so let's get rid of the duplicate definitions. Signed-off-by: Erik Faye-Lund Reviewed-by: Ian Romanick --- src/mesa/main/enable.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index fc0016bf9fe..83e7f9734d1 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1300,20 +1300,6 @@ _mesa_IsEnabledi( GLenum cap, GLuint index ) - -#undef CHECK_EXTENSION -#define CHECK_EXTENSION(EXTNAME) \ - if (!ctx->Extensions.EXTNAME) { \ - goto invalid_enum_error; \ - } - -#undef CHECK_EXTENSION2 -#define CHECK_EXTENSION2(EXT1, EXT2) \ - if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2) { \ - goto invalid_enum_error; \ - } - - /** * Helper function to determine whether a texture target is enabled. */ -- 2.30.2