diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-05-24 18:02:38 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-05-24 18:02:38 +0200 |
| commit | c6d1622394c0bf178bc3a2b618beb9fa70345144 (patch) | |
| tree | 6d94188d3ae6769194ce479805540388be79bf5a /util/sokol_debugtext.h | |
| parent | 83b3fc31621c6bd8aedc68007c6a1536b1a71d1c (diff) | |
sokol_debugtext.h bugfix: reset cursor pos in sdtx_draw()
Diffstat (limited to 'util/sokol_debugtext.h')
| -rw-r--r-- | util/sokol_debugtext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h index 46c6a03e..3048ea66 100644 --- a/util/sokol_debugtext.h +++ b/util/sokol_debugtext.h @@ -3851,6 +3851,8 @@ SOKOL_API_IMPL void sdtx_draw(void) { } ctx->cur_vertex_ptr = ctx->vertices; ctx->cur_font = 0; + ctx->pos.x = 0.0f; + ctx->pos.y = 0.0f; } } |