aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-08 16:55:29 -0700
committerBrian <[email protected]>2007-11-08 16:55:29 -0700
commit990fe4c0bf735206c3cc7346d84adc782595bc3a (patch)
treeedcf3d00b64c4866daccc7bb7558149980d46070 /src/mesa/pipe
parentec0c5e59c2c3470cc59d25383854d12a76dca70a (diff)
remove unneeded #includes, added assertion in draw_compute_vertex_size()
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/draw/draw_vertex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex.c b/src/mesa/pipe/draw/draw_vertex.c
index ce76cb043c9..dea26a3d0a1 100644
--- a/src/mesa/pipe/draw/draw_vertex.c
+++ b/src/mesa/pipe/draw/draw_vertex.c
@@ -34,11 +34,7 @@
*/
-#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);
}