[Mesa-dev] [PATCH 1/6] mesa: remove ASSERT_NO_FEATURE macro
Brian Paul
brian.e.paul at gmail.com
Sat Sep 22 17:45:32 PDT 2012
From: Brian Paul <brianp at vmware.com>
Was only used in one place.
---
src/mesa/main/api_validate.c | 2 +-
src/mesa/main/mfeatures.h | 3 ---
2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index db9d14a..6f02508 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -148,7 +148,7 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
break;
default:
- ASSERT_NO_FEATURE();
+ assert(!"Invalid API value in check_valid_to_render()");
}
return GL_TRUE;
diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index 3162a0b..829c056 100644
--- a/src/mesa/main/mfeatures.h
+++ b/src/mesa/main/mfeatures.h
@@ -35,9 +35,6 @@
#define _HAVE_FULL_GL 1
#endif
-/* assert that a feature is disabled and should never be used */
-#define ASSERT_NO_FEATURE() ASSERT(0)
-
#ifndef FEATURE_ES1
#define FEATURE_ES1 0
#endif
--
1.7.4.1
More information about the mesa-dev
mailing list