mesa/draw: fix -Wformat warning

fixes: 5791826b
cc @pepp @mareko

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22605>
This commit is contained in:
Michel Zou
2023-04-20 19:10:56 +02:00
committed by Marge Bot
parent b83af7e5b8
commit a1098a1e45

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