aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_gl.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-04-07 15:25:16 +0200
committerAndre Weissflog <floooh@gmail.com>2025-04-07 15:25:16 +0200
commit42a0ef3f0f873fbb5565d1d19387566f7491e2bb (patch)
tree03500485ff2609a6e660693beda6dff6dd45fdf8 /util/sokol_gl.h
parent0c6ac02e7e76c79e7fcd2c16ed7daa7ea937594a (diff)
fix some util headers for sg_buffer/image_usage
Diffstat (limited to 'util/sokol_gl.h')
-rw-r--r--util/sokol_gl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_gl.h b/util/sokol_gl.h
index b419b15c..8f5211ca 100644
--- a/util/sokol_gl.h
+++ b/util/sokol_gl.h
@@ -3321,8 +3321,8 @@ static void _sgl_init_context(sgl_context ctx_id, const sgl_context_desc_t* in_d
sg_buffer_desc vbuf_desc;
_sgl_clear(&vbuf_desc, sizeof(vbuf_desc));
vbuf_desc.size = (size_t)ctx->vertices.cap * sizeof(_sgl_vertex_t);
- vbuf_desc.type = SG_BUFFERTYPE_VERTEXBUFFER;
- vbuf_desc.usage = SG_USAGE_STREAM;
+ vbuf_desc.usage.vertex_buffer = true;
+ vbuf_desc.usage.stream_update = true;
vbuf_desc.label = "sgl-vertex-buffer";
ctx->vbuf = sg_make_buffer(&vbuf_desc);
SOKOL_ASSERT(SG_INVALID_ID != ctx->vbuf.id);