Skip to content

Commit

Permalink
Reset viewport in set_default_camera
Browse files Browse the repository at this point in the history
  • Loading branch information
agerasev authored and not-fl3 committed Nov 17, 2024
1 parent 5c4132b commit a66852a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a66852a

Please sign in to comment.