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 c445acca7d6d96544fbfb3bcc9694dd4db697770..54b2539b8ecc5c61e08a44e69f77419e1eab1b2c 100644
(file)
--- a/
src/mesa/vbo/vbo_split.c
+++ b/
src/mesa/vbo/vbo_split.c
@@
-98,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,
@@
-108,12
+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 )
{
- GL
u
int max_basevertex = prim->basevertex;
+ GLint max_basevertex = prim->basevertex;
GLuint i;
for (i = 1; i < nr_prims; i++)
max_basevertex = MAX2(max_basevertex, prim[i].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.