From: Erik Faye-Lund Date: Mon, 25 Feb 2019 11:10:43 +0000 (+0100) Subject: mesa/main: remove duplicate macros X-Git-Tag: upstream/19.3.0~6119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=182d75d2a508cfd60b3b9082ce07369d3d28c32c;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index fc0016b..83e7f97 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. */