Cell: generalize the batch buffer code for vertex buffers...
[mesa.git] / src / mesa / vbo / vbo_split.c
index 171859a18e00682c91f8f18c588df85722fcc755..58e879628dea28cc2a594bae6e28fc78222258ff 100644 (file)
@@ -47,9 +47,9 @@
  * limitations on drivers which want to use it as a fallback path.
  */
 
-#include "glheader.h"
-#include "imports.h"
-#include "mtypes.h"
+#include "main/glheader.h"
+#include "main/imports.h"
+#include "main/mtypes.h"
 
 #include "vbo_split.h"
 #include "vbo.h"
@@ -121,7 +121,7 @@ void vbo_split_prims( GLcontext *ctx,
          */
         assert(0);
       }
-      else if (max_index - min_index > limits->max_verts) {
+      else if (max_index - min_index >= limits->max_verts) {
         /* The vertex buffers are too large for hardware (or the
          * swtnl module).  Traverse the indices, re-emitting vertices
          * in turn.  Use a vertex cache to preserve some of the