mesa: remove stray bits of GL_EXT_cull_vertex
authorBrian Paul <brianp@vmware.com>
Tue, 4 Feb 2014 17:38:59 +0000 (10:38 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Feb 2014 18:53:21 +0000 (11:53 -0700)
GL_EXT_cull_vertex was removed back in 2010 in commit 02984e3536
but these bits still lingered.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/matrix.c
src/mesa/main/mtypes.h

index b2130221ff8bf0141d4a93c7123e1a4569b7ac74..99a50132170351a9f082643a388f95b3cd7f52a1 100644 (file)
@@ -606,16 +606,8 @@ calculate_model_project_matrix( struct gl_context *ctx )
  */
 void _mesa_update_modelview_project( struct gl_context *ctx, GLuint new_state )
 {
-   if (new_state & _NEW_MODELVIEW) {
+   if (new_state & _NEW_MODELVIEW)
       _math_matrix_analyse( ctx->ModelviewMatrixStack.Top );
-    
-      /* Bring cull position up to date.
-       */
-      TRANSFORM_POINT3( ctx->Transform.CullObjPos, 
-                       ctx->ModelviewMatrixStack.Top->inv,
-                       ctx->Transform.CullEyePos );
-   }
-
 
    if (new_state & _NEW_PROJECTION)
       update_projection( ctx );
@@ -762,9 +754,6 @@ void _mesa_init_transform( struct gl_context *ctx )
       ASSIGN_4V( ctx->Transform.EyeUserPlane[i], 0.0, 0.0, 0.0, 0.0 );
    }
    ctx->Transform.ClipPlanesEnabled = 0;
-
-   ASSIGN_4V( ctx->Transform.CullObjPos, 0.0, 0.0, 1.0, 0.0 );
-   ASSIGN_4V( ctx->Transform.CullEyePos, 0.0, 0.0, 1.0, 0.0 );
 }
 
 
index 5fc15af2d62d2729a1b9e45b9ab363057fcde5d8..b9ac2b3cf01a6ecb56d589e4698fa427ae1a4655 100644 (file)
@@ -1423,9 +1423,6 @@ struct gl_transform_attrib
    GLboolean RescaleNormals;                   /**< GL_EXT_rescale_normal */
    GLboolean RasterPositionUnclipped;           /**< GL_IBM_rasterpos_clip */
    GLboolean DepthClamp;                       /**< GL_ARB_depth_clamp */
-
-   GLfloat CullEyePos[4];
-   GLfloat CullObjPos[4];
 };