aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.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_debugtext.h
parent0c6ac02e7e76c79e7fcd2c16ed7daa7ea937594a (diff)
fix some util headers for sg_buffer/image_usage
Diffstat (limited to 'util/sokol_debugtext.h')
-rw-r--r--util/sokol_debugtext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 904b778c..826cf675 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -4251,8 +4251,8 @@ static void _sdtx_init_context(sdtx_context ctx_id, const sdtx_context_desc_t* i
sg_buffer_desc vbuf_desc;
_sdtx_clear(&vbuf_desc, sizeof(vbuf_desc));
vbuf_desc.size = vbuf_size;
- 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 = "sdtx-vbuf";
ctx->vbuf = sg_make_buffer(&vbuf_desc);
SOKOL_ASSERT(SG_INVALID_ID != ctx->vbuf.id);