diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-12-13 16:15:47 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-12-13 16:15:47 +0100 |
| commit | 16cbcc864012898793cd2bc57f802499a264ea40 (patch) | |
| tree | eedf5397a7f4d73af4d6bd7625af66738317bfe1 /sokol_gfx.h | |
| parent | 33e2271c431bf21de001e972f72da17a984da932 (diff) | |
sokol_gfx.h: fix another gap in assert check (potentially fixes #1407)
Diffstat (limited to 'sokol_gfx.h')
| -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 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); |