aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_fontstash.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-04-12 17:04:00 +0200
committerAndre Weissflog <floooh@gmail.com>2025-04-12 17:04:00 +0200
commita2a609d86ca378f03db8e29fe9eac3926acc2b13 (patch)
treec5af0320b6b4d701a17f1fcaad40ea0c6301c784 /util/sokol_fontstash.h
parent23906b11177e07c70aa1159eb5fa0ae3e7fe04ed (diff)
fix util headers for sg_buffer/image_usage
Diffstat (limited to 'util/sokol_fontstash.h')
-rw-r--r--util/sokol_fontstash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sokol_fontstash.h b/util/sokol_fontstash.h
index 27a48c8e..b85cde60 100644
--- a/util/sokol_fontstash.h
+++ b/util/sokol_fontstash.h
@@ -2160,7 +2160,7 @@ static int _sfons_render_create(void* user_ptr, int width, int height) {
_sfons_clear(&img_desc, sizeof(img_desc));
img_desc.width = sfons->cur_width;
img_desc.height = sfons->cur_height;
- img_desc.usage = SG_USAGE_DYNAMIC;
+ img_desc.usage.dynamic_update = true;
img_desc.pixel_format = SG_PIXELFORMAT_R8;
sfons->img = sg_make_image(&img_desc);
return 1;