diff options
| -rw-r--r-- | sokol_gfx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index ef290235..18d0692c 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -22381,9 +22381,9 @@ _SOKOL_PRIVATE bool _sg_validate_image_desc(const sg_image_desc* desc) { if (_sg.desc.disable_validation) { return true; } + SOKOL_ASSERT(desc); const sg_image_usage* usg = &desc->usage; const bool any_attachment = usg->color_attachment || usg->resolve_attachment || usg->depth_stencil_attachment; - SOKOL_ASSERT(desc); _sg_validate_begin(); _SG_VALIDATE(desc->_start_canary == 0, VALIDATE_IMAGEDESC_CANARY); _SG_VALIDATE(desc->_end_canary == 0, VALIDATE_IMAGEDESC_CANARY); |