aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-02-11 18:52:53 +0100
committerAndre Weissflog <floooh@gmail.com>2019-02-11 18:53:02 +0100
commit7aa584f861f1dbf191b0d28277d710ae7f248957 (patch)
treea4809ccfd311ccb3a67c18e2498f1dc680e772ed /sokol_gfx.h
parent600aeb884fe348a6276dc03672859a4b2fb9b0d6 (diff)
sokol_gfx.h: fix an assert in the GL backend
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 b234e6f8..7a215b70 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -4853,8 +4853,8 @@ _SOKOL_PRIVATE void _sg_apply_bindings(
/* attribute is enabled */
SOKOL_ASSERT(attr->vb_index < num_vbs);
_sg_buffer_t* vb = vbs[attr->vb_index];
- gl_vb = vb->gl_buf[vb->active_slot];
SOKOL_ASSERT(vb);
+ gl_vb = vb->gl_buf[vb->active_slot];
vb_offset = vb_offsets[attr->vb_index] + attr->offset;
if ((gl_vb != cache_attr->gl_vbuf) ||
(attr->size != cache_attr->gl_attr.size) ||