From 5d11344150973f15e16d3ec4ee7550a73fb995e0 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 13 Dec 2025 16:17:20 +0100 Subject: sokol_gfx.h: fix another gap in assert check (fixes #1405) --- sokol_gfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index b3ca8ee5..bf811b79 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -24077,7 +24077,7 @@ _SOKOL_PRIVATE sg_pipeline_desc _sg_pipeline_desc_defaults(const sg_pipeline_des if (a_state->format == SG_VERTEXFORMAT_INVALID) { break; } - SOKOL_ASSERT(a_state->buffer_index < SG_MAX_VERTEXBUFFER_BINDSLOTS); + SOKOL_ASSERT((a_state->buffer_index >= 0) && (a_state->buffer_index < SG_MAX_VERTEXBUFFER_BINDSLOTS)); if (use_auto_offset) { a_state->offset = auto_offset[a_state->buffer_index]; } -- cgit v1.2.3