[Mesa-dev] [PATCH 36/45] mesa: replace FEATURE_ARB_map_buffer_range with FEATURE_GL define.
Oliver McFadden
oliver.mcfadden at linux.intel.com
Tue Sep 11 02:56:49 PDT 2012
Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
---
src/mesa/main/api_exec.c | 2 +-
src/mesa/main/dlist.c | 2 +-
src/mesa/main/mfeatures.h | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index 091d980..1816d93 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -779,7 +779,7 @@ _mesa_create_exec_table(struct gl_context *ctx)
}
#endif
-#if FEATURE_ARB_map_buffer_range
+#if FEATURE_GL
if (ctx->API != API_OPENGLES2) {
SET_MapBufferRange(exec, _mesa_MapBufferRange);
SET_FlushMappedBufferRange(exec, _mesa_FlushMappedBufferRange);
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 7796344..08b87ab 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -10502,7 +10502,7 @@ _mesa_create_save_table(void)
SET_ProgramLocalParameters4fvEXT(table, save_ProgramLocalParameters4fvEXT);
/* ARB 50. GL_ARB_map_buffer_range */
-#if FEATURE_ARB_map_buffer_range
+#if FEATURE_GL
SET_MapBufferRange(table, _mesa_MapBufferRange); /* no dlist save */
SET_FlushMappedBufferRange(table, _mesa_FlushMappedBufferRange); /* no dl */
#endif
diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index 5245c18..a94d2f9 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_ARB_map_buffer_range FEATURE_GL
#define FEATURE_ARB_pixel_buffer_object FEATURE_GL
#define FEATURE_ARB_sampler_objects FEATURE_GL
#define FEATURE_ARB_sync FEATURE_GL
--
1.7.8.6
More information about the mesa-dev
mailing list