[Mesa-dev] [PATCH 03/45] mesa: remove FEATURE_userclip define.

Oliver McFadden oliver.mcfadden at linux.intel.com
Tue Sep 11 02:56:16 PDT 2012


Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
---
 src/mesa/main/enable.c    |    2 --
 src/mesa/main/matrix.c    |    2 --
 src/mesa/main/mfeatures.h |    2 --
 3 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 14eea53..78ce471 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -298,7 +298,6 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
             }
          }
          break;
-#if FEATURE_userclip
       case GL_CLIP_DISTANCE0:
       case GL_CLIP_DISTANCE1:
       case GL_CLIP_DISTANCE2:
@@ -328,7 +327,6 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
             }               
          }
          break;
-#endif
       case GL_COLOR_MATERIAL:
          if (ctx->API != API_OPENGL && ctx->API != API_OPENGLES)
             goto invalid_enum_error;
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index 5c3569c..76f5ea7 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -572,7 +572,6 @@ update_projection( struct gl_context *ctx )
 {
    _math_matrix_analyse( ctx->ProjectionMatrixStack.Top );
 
-#if FEATURE_userclip
    /* Recompute clip plane positions in clipspace.  This is also done
     * in _mesa_ClipPlane().
     */
@@ -586,7 +585,6 @@ update_projection( struct gl_context *ctx )
 	 }
       }
    }
-#endif
 }
 
 
diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index 2597583..b7acbee 100644
--- a/src/mesa/main/mfeatures.h
+++ b/src/mesa/main/mfeatures.h
@@ -84,8 +84,6 @@
 #define FEATURE_remap_table               0
 #endif
 
-#define FEATURE_userclip                  1
-
 #define FEATURE_accum                     FEATURE_GL
 #define FEATURE_arrayelt                  FEATURE_GL
 #define FEATURE_attrib_stack              FEATURE_GL
-- 
1.7.8.6



More information about the mesa-dev mailing list