summaryrefslogtreecommitdiff
path: root/src/context.rs
diff options
context:
space:
mode:
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(),
)