aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-09-13 15:39:22 +0200
committerAndre Weissflog <floooh@gmail.com>2025-09-13 15:39:22 +0200
commitba56a8c766286faad1db6c87a78b55d951e0f1d6 (patch)
tree3772f1050756ff37468638ee6ac9207c2f1c3c93 /util/sokol_debugtext.h
parent38f671d7b7701dc1a339685275be87a5a8eea696 (diff)
sokol_gfx.h: sg_image_desc.subimage => .mip_levels
Diffstat (limited to 'util/sokol_debugtext.h')
-rw-r--r--util/sokol_debugtext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 701e090c..1196b6d5 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -4435,7 +4435,7 @@ static void _sdtx_setup_common(void) {
img_desc.width = 256 * 8;
img_desc.height = SDTX_MAX_FONTS * 8;
img_desc.pixel_format = SG_PIXELFORMAT_R8;
- img_desc.data.subimage[0] = SG_RANGE(_sdtx.font_pixels);
+ img_desc.data.mip_levels[0] = SG_RANGE(_sdtx.font_pixels);
img_desc.label = "sdtx-font-texture";
_sdtx.font_img = sg_make_image(&img_desc);
SOKOL_ASSERT(SG_INVALID_ID != _sdtx.font_img.id);