From a66852aa9d7efa86656c477825abe3a5072f8a1e Mon Sep 17 00:00:00 2001 From: Alexey Gerasev Date: Sun, 17 Nov 2024 20:05:25 +0700 Subject: [PATCH] Reset viewport in set_default_camera --- src/camera.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/camera.rs b/src/camera.rs index 043e6691..45334792 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -276,6 +276,7 @@ pub fn set_default_camera() { context.perform_render_passes(); context.gl.render_pass(None); + context.gl.viewport(None); context.gl.depth_test(false); context.camera_matrix = None; }