[Mesa-dev] [PATCH 11/45] mesa: replace FEATURE_draw_read_buffer with FEATURE_GL define.
Oliver McFadden
oliver.mcfadden at linux.intel.com
Tue Sep 11 02:56:24 PDT 2012
Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
---
src/mesa/main/api_exec.c | 6 +++---
src/mesa/main/mfeatures.h | 1 -
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index c448189..695b045 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -41,7 +41,7 @@
#include "blend.h"
#include "bufferobj.h"
#include "arrayobj.h"
-#if FEATURE_draw_read_buffer
+#if FEATURE_GL
#include "buffers.h"
#endif
#include "clear.h"
@@ -144,7 +144,7 @@ _mesa_create_exec_table(struct gl_context *ctx)
SET_ColorMask(exec, _mesa_ColorMask);
SET_CullFace(exec, _mesa_CullFace);
SET_Disable(exec, _mesa_Disable);
-#if FEATURE_draw_read_buffer
+#if FEATURE_GL
if (ctx->API == API_OPENGL || ctx->API == API_OPENGL_CORE)
SET_DrawBuffer(exec, _mesa_DrawBuffer);
@@ -703,7 +703,7 @@ _mesa_create_exec_table(struct gl_context *ctx)
}
/* ARB 37. GL_ARB_draw_buffers */
-#if FEATURE_draw_read_buffer
+#if FEATURE_GL
SET_DrawBuffersARB(exec, _mesa_DrawBuffersARB);
#endif
diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index bfd7e27..2742e5a 100644
--- a/src/mesa/main/mfeatures.h
+++ b/src/mesa/main/mfeatures.h
@@ -84,7 +84,6 @@
#define FEATURE_remap_table 0
#endif
-#define FEATURE_draw_read_buffer FEATURE_GL
#define FEATURE_drawpix FEATURE_GL
#define FEATURE_evaluators FEATURE_GL
#define FEATURE_feedback FEATURE_GL
--
1.7.8.6
More information about the mesa-dev
mailing list