From c2cc1858a1896e2b4be9db22cc38f720e4f460e6 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 6 Dec 2025 23:22:33 +0100 Subject: sokol_gfx.h gl: move assert into right place (fixes #1395) --- sokol_gfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sokol_gfx.h') 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); -- cgit v1.2.3