diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-09-13 15:45:56 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-09-13 15:45:56 +0200 |
| commit | 25030c491112d8304370d0577d8e6e02f719c5f4 (patch) | |
| tree | be0bcab47adc7eeb39688d035463089ead9c7409 /util/sokol_fontstash.h | |
| parent | ba56a8c766286faad1db6c87a78b55d951e0f1d6 (diff) | |
fix util headers for cubeface => slice rework
Diffstat (limited to 'util/sokol_fontstash.h')
| -rw-r--r-- | util/sokol_fontstash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_fontstash.h b/util/sokol_fontstash.h index c1f19198..aa8d2095 100644 --- a/util/sokol_fontstash.h +++ b/util/sokol_fontstash.h @@ -2276,8 +2276,8 @@ SOKOL_API_IMPL void sfons_flush(FONScontext* ctx) { sfons->img_dirty = false; sg_image_data data; _sfons_clear(&data, sizeof(data)); - data.subimage[0][0].ptr = ctx->texData; - data.subimage[0][0].size = (size_t) (sfons->cur_width * sfons->cur_height); + data.mip_levels[0].ptr = ctx->texData; + data.mip_levels[0].size = (size_t) (sfons->cur_width * sfons->cur_height); sg_update_image(sfons->img, &data); } } |