diff options
author | Michal Krol <michal@vmware.com> | 2009-09-14 11:22:05 +0200 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-09-14 11:22:05 +0200 |
commit | 9f273f109875cd9208d4c1c8f5939fb5e507c230 (patch) | |
tree | 35c8adedcf44cf8eb3bddbb51b5efa766539a07b /src/mesa/vbo/vbo_split.c | |
parent | fab99092a0879531442d1dd20f971ae7eda824eb (diff) | |
parent | aad0deee4b2d347bdfc536fe98938ed825bf0f6b (diff) | |
download | external_mesa3d-9f273f109875cd9208d4c1c8f5939fb5e507c230.zip external_mesa3d-9f273f109875cd9208d4c1c8f5939fb5e507c230.tar.gz external_mesa3d-9f273f109875cd9208d4c1c8f5939fb5e507c230.tar.bz2 |
Merge commit 'origin/master' into glsl-pp-rework-2
Diffstat (limited to 'src/mesa/vbo/vbo_split.c')
-rw-r--r-- | src/mesa/vbo/vbo_split.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_split.c b/src/mesa/vbo/vbo_split.c index 58e8796..c445acc 100644 --- a/src/mesa/vbo/vbo_split.c +++ b/src/mesa/vbo/vbo_split.c @@ -50,6 +50,7 @@ #include "main/glheader.h" #include "main/imports.h" #include "main/mtypes.h" +#include "main/macros.h" #include "vbo_split.h" #include "vbo.h" @@ -107,7 +108,12 @@ void vbo_split_prims( GLcontext *ctx, vbo_draw_func draw, const struct split_limits *limits ) { - + GLuint max_basevertex = prim->basevertex; + GLuint i; + + for (i = 1; i < nr_prims; i++) + max_basevertex = MAX2(max_basevertex, prim[i].basevertex); + if (ib) { if (limits->max_indices == 0) { /* Could traverse the indices, re-emitting vertices in turn. |