projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
meta: Don't ask for floating point textures if not ARB_texture_float.
[mesa.git]
/
src
/
mesa
/
vbo
/
vbo_split.c
diff --git
a/src/mesa/vbo/vbo_split.c
b/src/mesa/vbo/vbo_split.c
index ef205a3bb1fb47532131c6cc638eb2cc4a81f697..54b2539b8ecc5c61e08a44e69f77419e1eab1b2c 100644
(file)
--- a/
src/mesa/vbo/vbo_split.c
+++ b/
src/mesa/vbo/vbo_split.c
@@
-47,9
+47,10
@@
* limitations on drivers which want to use it as a fallback path.
*/
* 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 "main/macros.h"
#include "vbo_split.h"
#include "vbo.h"
#include "vbo_split.h"
#include "vbo.h"
@@
-97,7
+98,7
@@
GLboolean split_prim_inplace(GLenum mode, GLuint *first, GLuint *incr)
-void vbo_split_prims(
GL
context *ctx,
+void vbo_split_prims(
struct gl_
context *ctx,
const struct gl_client_array *arrays[],
const struct _mesa_prim *prim,
GLuint nr_prims,
const struct gl_client_array *arrays[],
const struct _mesa_prim *prim,
GLuint nr_prims,
@@
-107,7
+108,14
@@
void vbo_split_prims( GLcontext *ctx,
vbo_draw_func draw,
const struct split_limits *limits )
{
vbo_draw_func draw,
const struct split_limits *limits )
{
-
+ GLint max_basevertex = prim->basevertex;
+ GLuint i;
+
+ for (i = 1; i < nr_prims; i++)
+ max_basevertex = MAX2(max_basevertex, prim[i].basevertex);
+
+ /* XXX max_basevertex is computed but not used, why? */
+
if (ib) {
if (limits->max_indices == 0) {
/* Could traverse the indices, re-emitting vertices in turn.
if (ib) {
if (limits->max_indices == 0) {
/* Could traverse the indices, re-emitting vertices in turn.