mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 07:00:27 +01:00
mesa: Fix unsigned comparison.
This commit is contained in:
parent
0dd40cc20a
commit
f9504e75f0
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ check_index_bounds(GLcontext *ctx, GLsizei count, GLenum type,
|
|||
|
||||
vbo_get_minmax_index(ctx, &prim, &ib, &min, &max);
|
||||
|
||||
if (min + basevertex < 0 ||
|
||||
if (min < basevertex ||
|
||||
max + basevertex > ctx->Array.ArrayObj->_MaxElement) {
|
||||
/* the max element is out of bounds of one or more enabled arrays */
|
||||
_mesa_warning(ctx, "glDrawElements() index=%u is "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue