prim[i].basevertex = 0;
}
- ctx->Driver.Draw(ctx, prim, primcount, NULL, GL_FALSE, 0, 0, 1, 0);
+ ctx->Driver.Draw(ctx, prim, primcount, NULL, false, 0, 0, 1, 0);
if (MESA_DEBUG_FLAGS & DEBUG_ALWAYS_FLUSH)
_mesa_flush(ctx);
*/
static void
_mesa_validated_drawrangeelements(struct gl_context *ctx, GLenum mode,
- GLboolean index_bounds_valid,
+ bool index_bounds_valid,
GLuint start, GLuint end,
GLsizei count, GLenum type,
const GLvoid * indices,
const GLvoid * indices, GLint basevertex)
{
static GLuint warnCount = 0;
- GLboolean index_bounds_valid = GL_TRUE;
+ bool index_bounds_valid = true;
/* This is only useful to catch invalid values in the "end" parameter
* like ~0.
start, end, basevertex, count, type, indices,
max_element - 1);
}
- index_bounds_valid = GL_FALSE;
+ index_bounds_valid = false;
}
/* NOTE: It's important that 'end' is a reasonable value.
}
if ((int) start + basevertex < 0 || end + basevertex >= max_element)
- index_bounds_valid = GL_FALSE;
+ index_bounds_valid = false;
#if 0
check_draw_elements_data(ctx, count, type, indices, basevertex);
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices, 0, 1, 0);
}
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices, basevertex, 1, 0);
}
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices, 0, numInstances, 0);
}
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices,
basevertex, numInstances, 0);
}
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices, 0, numInstances,
baseInstance);
}
return;
}
- _mesa_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
+ _mesa_validated_drawrangeelements(ctx, mode, false, 0, ~0,
count, type, indices, basevertex,
numInstances, baseInstance);
}
{
struct _mesa_index_buffer ib;
uintptr_t min_index_ptr, max_index_ptr;
- GLboolean fallback = GL_FALSE;
+ bool fallback = false;
int i;
if (primcount == 0)
for (i = 0; i < primcount; i++) {
if ((((uintptr_t) indices[i] - min_index_ptr) &
((1 << ib.index_size_shift) - 1)) != 0) {
- fallback = GL_TRUE;
+ fallback = true;
break;
}
}
if (ctx->Const.MultiDrawWithUserIndices) {
/* Check whether prim[i].start would overflow. */
if (((max_index_ptr - min_index_ptr) >> ib.index_size_shift) > UINT_MAX)
- fallback = GL_TRUE;
+ fallback = true;
} else {
/* If the index buffer isn't in a VBO, then treating the application's
* subranges of the index buffer as one large index buffer may lead to
* us reading unmapped memory.
*/
if (!ctx->Array.VAO->IndexBufferObj)
- fallback = GL_TRUE;
+ fallback = true;
}
if (!fallback) {