aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-12-06 23:22:33 +0100
committerAndre Weissflog <floooh@gmail.com>2025-12-06 23:22:33 +0100
commitc2cc1858a1896e2b4be9db22cc38f720e4f460e6 (patch)
tree1df788c0c87a90c5fd71bae300302bff22f2a784
parentc9288d8495c5891c5275c0de9bd4fc3571d63bbc (diff)
sokol_gfx.h gl: move assert into right place (fixes #1395)
-rw-r--r--sokol_gfx.h2
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);