summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-24 23:30:00 +0200
committerHampusM <hampus@hampusmat.com>2024-05-24 23:30:13 +0200
commit05bd5ccbc5dd9bd8516162ac9a253e2d99be3ba9 (patch)
tree3515030229d6311b6f23cdf351495e4401e412f1 /engine
parent96c29ed9bef2221a57fa8ebe94a8c9a281f76b48 (diff)
fix(engine): enable OpenGL multisampling on renderer init
Diffstat (limited to 'engine')
-rw-r--r--engine/src/opengl/mod.rs1
-rw-r--r--engine/src/renderer/opengl.rs1
2 files changed, 2 insertions, 0 deletions
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<Window>)
});
enable(Capability::DepthTest);
+ enable(Capability::MultiSample);
}
fn render(