aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-12-13 16:17:20 +0100
committerAndre Weissflog <floooh@gmail.com>2025-12-13 16:17:20 +0100
commit5d11344150973f15e16d3ec4ee7550a73fb995e0 (patch)
tree5eddea1b9b9b8cda78127412498f3609ab9d70be /sokol_gfx.h
parent16cbcc864012898793cd2bc57f802499a264ea40 (diff)
sokol_gfx.h: fix another gap in assert check (fixes #1405)
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h2
1 files changed, 1 insertions, 1 deletions
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];
}