remove unneeded #includes, added assertion in draw_compute_vertex_size()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 23:55:29 +0000 (16:55 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 23:55:29 +0000 (16:55 -0700)
src/mesa/pipe/draw/draw_vertex.c

index ce76cb0..dea26a3 100644 (file)
  */
 
 
-#include "pipe/p_defines.h"
-#include "pipe/p_util.h"
-
 #include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_context.h"
 #include "pipe/draw/draw_vertex.h"
 
 
@@ -86,6 +82,8 @@ draw_compute_vertex_size(struct vertex_info *vinfo)
          assert(0);
       }
    }
+
+   assert(vinfo->size * 4 <= MAX_VERTEX_SIZE);
 }