From 05bd5ccbc5dd9bd8516162ac9a253e2d99be3ba9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 24 May 2024 23:30:00 +0200 Subject: fix(engine): enable OpenGL multisampling on renderer init --- engine/src/opengl/mod.rs | 1 + engine/src/renderer/opengl.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'engine/src') diff --git a/engine/src/opengl/mod.rs b/engine/src/opengl/mod.rs index 15f40cb..40f0c58 100644 --- a/engine/src/opengl/mod.rs +++ b/engine/src/opengl/mod.rs @@ -54,4 +54,5 @@ bitflags! { pub enum Capability { DepthTest = gl::DEPTH_TEST, + MultiSample = gl::MULTISAMPLE, } diff --git a/engine/src/renderer/opengl.rs b/engine/src/renderer/opengl.rs index 8cafe0d..8c416f0 100644 --- a/engine/src/renderer/opengl.rs +++ b/engine/src/renderer/opengl.rs @@ -91,6 +91,7 @@ fn initialize(window: Single) }); enable(Capability::DepthTest); + enable(Capability::MultiSample); } fn render( -- cgit v1.2.3-18-g5258