summaryrefslogtreecommitdiff
path: root/src/context.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-04-13 20:34:28 -0400
committerLLLL Colonq <llll@colonq>2024-04-13 20:34:28 -0400
commitf0b945d378a157a780f56b1fc015b7937e151852 (patch)
tree3caddd259ad14a225cd3984726b3d44bac8b6d4a /src/context.rs
parent17eb85df48b64dd9d391cad28f58355e05ed2855 (diff)
Bugfixes, texture filtering
Diffstat (limited to 'src/context.rs')
-rw-r--r--src/context.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/context.rs b/src/context.rs
index 5328d4d..db6a2a7 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -61,7 +61,8 @@ impl Context {
gl.enable(glow::STENCIL_TEST);
- gl.cull_face(glow::FRONT);
+ // gl.enable(glow::CULL_FACE);
+ // gl.cull_face(glow::FRONT);
}
let emptyvao = unsafe {
@@ -88,7 +89,7 @@ impl Context {
let browser_window = doc.default_view()
.or_else(web_sys::window)
.unwrap();
- winit::dpi::LogicalSize::new(
+ winit::dpi::PhysicalSize::new(
browser_window.inner_width().unwrap().as_f64().unwrap(),
browser_window.inner_height().unwrap().as_f64().unwrap(),
)