mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 08:50:25 +01:00
mesa: mark debug variables with ASSERTED
To clean up compilation warnings about unused variables when asserts are disabled. v2: UNUSED -> ASSERTED (Eric Engestrom) Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19016>
This commit is contained in:
parent
b62d1c257e
commit
21740580ce
1 changed files with 3 additions and 3 deletions
|
|
@ -156,9 +156,9 @@ valid_prim_mode_custom(struct gl_context *ctx, GLenum mode,
|
|||
GLbitfield valid_prim_mask)
|
||||
{
|
||||
#if DEBUG
|
||||
unsigned mask = ctx->ValidPrimMask;
|
||||
unsigned mask_indexed = ctx->ValidPrimMaskIndexed;
|
||||
bool drawpix_valid = ctx->DrawPixValid;
|
||||
ASSERTED unsigned mask = ctx->ValidPrimMask;
|
||||
ASSERTED unsigned mask_indexed = ctx->ValidPrimMaskIndexed;
|
||||
ASSERTED bool drawpix_valid = ctx->DrawPixValid;
|
||||
_mesa_update_valid_to_render_state(ctx);
|
||||
assert(mask == ctx->ValidPrimMask &&
|
||||
mask_indexed == ctx->ValidPrimMaskIndexed &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue