From 16cbcc864012898793cd2bc57f802499a264ea40 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 13 Dec 2025 16:15:47 +0100 Subject: sokol_gfx.h: fix another gap in assert check (potentially fixes #1407) --- sokol_gfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index 947397ac..b3ca8ee5 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -24056,7 +24056,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)); sg_vertex_buffer_layout_state* l_state = &def.layout.buffers[a_state->buffer_index]; l_state->step_func = _sg_def(l_state->step_func, SG_VERTEXSTEP_PER_VERTEX); l_state->step_rate = _sg_def(l_state->step_rate, 1); -- cgit v1.2.3