mesa/main: remove duplicate macros
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 25 Feb 2019 11:10:43 +0000 (12:10 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 23 May 2019 09:35:55 +0000 (11:35 +0200)
These are already defined as the exactly same, so let's get rid of
the duplicate definitions.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/enable.c

index fc0016bf9fedeb1511117b17134272616b023353..83e7f9734d12a0a73359b9ab0274ff671a91ec6b 100644 (file)
@@ -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.
  */