diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index 8349243ab41..af9e282938b 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -1642,7 +1642,7 @@ _mesa_validated_drawrangeelements(struct gl_context *ctx, _mesa_warning(ctx, "Invalid indices offset 0x%" PRIxPTR " (indices buffer size is %ld bytes)" " or unallocated buffer (%u). Draw skipped.", - start, index_bo->Size, !!index_bo->buffer); + start, (long)index_bo->Size, !!index_bo->buffer); return; }