diff options
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index 9405abe..efe422c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,8 +22,6 @@ use engine::transform::Position; use engine::vector::Vec3; use engine::window::{ Builder as WindowBuilder, - CreationHint as WindowCreationHint, - CreationHintValue as WindowCreationHintValue, CursorMode, Extension as WindowExtension, Window, @@ -106,12 +104,9 @@ fn main() -> Result<(), Box<dyn Error>> engine.add_extension(OpenglRendererExtension::default()); engine.add_extension( - WindowExtension::new(WindowBuilder::default().creation_hint( - WindowCreationHint::Samples, - WindowCreationHintValue::Number(8), - )) - .window_title("Game") - .window_size(WINDOW_SIZE), + WindowExtension::new(WindowBuilder::default().multisampling_sample_count(8)) + .window_title("Game") + .window_size(WINDOW_SIZE), ); engine.add_extension(FlyCameraExtension(FlyCameraOptions { |