Lines Matching defs:max
58 * Find the max index in the given element/index buffer
66 GLuint max = 0;
79 if (((GLuint *) indices)[i] > max)
80 max = ((GLuint *) indices)[i];
84 if (((GLushort *) indices)[i] > max)
85 max = ((GLushort *) indices)[i];
90 if (((GLubyte *) indices)[i] > max)
91 max = ((GLubyte *) indices)[i];
98 return max;
175 GLuint min, max;
191 vbo_get_minmax_indices(ctx, &prim, &ib, &min, &max, 1);
194 max + basevertex >= ctx->Array.ArrayObj->_MaxElement) {
195 /* the max element is out of bounds of one or more enabled arrays */
196 _mesa_warning(ctx, "glDrawElements() index=%u is out of bounds (max=%u)",
197 max, ctx->Array.ArrayObj->_MaxElement);