mesa/draw: fix -Wformat warning

fixes: 5791826b
cc @pepp @mareko

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22605>
(cherry picked from commit a1098a1e45)
This commit is contained in:
Michel Zou 2023-04-20 19:10:56 +02:00 committed by Eric Engestrom
parent cec5bf6040
commit 49eb067746
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@
"description": "mesa/draw: fix -Wformat warning",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "5791826b1ac7085c8acf056abc279e66ca64eb55"
},

View File

@ -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;
}