mesa: don't include m_xform.h where not needed
[mesa.git] / src / mesa / main / attrib.c
index 98173cf78627f6956635255465bea23c482d2372..add0045959cbf4c48dc8ea7840d9937e07061323 100644 (file)
@@ -56,7 +56,7 @@
 #include "texstate.h"
 #include "varray.h"
 #include "mtypes.h"
-#include "math/m_xform.h"
+
 
 /**
  * Special struct for saving/restoring texture state (GL_TEXTURE_BIT)
@@ -1267,9 +1267,6 @@ adjust_buffer_object_ref_counts(struct gl_array_attrib *array, GLint step)
       array->ArrayObj->TexCoord[i].BufferObj->RefCount += step;
    for (i = 0; i < VERT_ATTRIB_MAX; i++)
       array->ArrayObj->VertexAttrib[i].BufferObj->RefCount += step;
-
-   array->ArrayBufferObj->RefCount += step;
-   array->ElementArrayBufferObj->RefCount += step;
 }