couple of bugfixes

This commit is contained in:
Tuomas Katajisto 2026-03-20 21:48:05 +02:00
parent 733cdd2760
commit 89fa64ca9e
2 changed files with 5 additions and 1 deletions

View File

@ -132,7 +132,7 @@ flush_arb_commands :: () {
sg_apply_scissor_rect(s.x, s.y, s.w, s.h, true);
case .REMOVE_SCISSOR;
w,h := get_window_size();
sg_apply_scissor_rect(0, 0, w, w, true);
sg_apply_scissor_rect(0, 0, w, h, true);
case .DRAW_TEXT;
sgl_draw_layer(it.layer);
}

View File

@ -31,6 +31,10 @@ on_window_resize :: () {
create_plane_pipeline_reflection_images();
create_final_image();
create_ssao_images();
// Reset glyph cache so stale sizes from resizing don't fill the atlas.
w, h : s32;
fonsGetAtlasSize(state.fons, *w, *h);
fonsResetAtlas(state.fons, w, h);
}
#scope_export