projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec0c5e5
)
remove unneeded #includes, added assertion in draw_compute_vertex_size()
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 23:55:29 +0000
(16:55 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 23:55:29 +0000
(16:55 -0700)
src/mesa/pipe/draw/draw_vertex.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_vertex.c
b/src/mesa/pipe/draw/draw_vertex.c
index ce76cb043c9ef68add61c80c4c6128cf70fe365f..dea26a3d0a1ed96d1e147f99d21952fea2ee0911 100644
(file)
--- 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);
}