couple of bugfixes
This commit is contained in:
parent
733cdd2760
commit
89fa64ca9e
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user