diff options
| -rw-r--r-- | src/mesa/main/api_validate.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 27049486ee..d5c604c56a 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -184,6 +184,8 @@ _mesa_validate_DrawElements(GLcontext *ctx,                                      ctx->Array.ElementArrayBufferObj);        if (max >= ctx->Array._MaxElement) {           /* the max element is out of bounds of one or more enabled arrays */ +         _mesa_warning(ctx, "glDrawElements() index=%u is " +                       "out of bounds (max=%u)", max, ctx->Array._MaxElement);           return GL_FALSE;        }     }  | 
