summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-03-01 19:13:13 +0100
committerHampusM <hampus@hampusmat.com>2024-03-01 19:13:13 +0100
commit2db4158d0eaa05b9a7cc7b2e18567cdb38e45a20 (patch)
treeafdc16df0976f6889e2f562542c666ab3aab7859 /engine
parent0cb595fe518dabf85256b612988ea73ae7b91981 (diff)
fix(engine): prevent logging notification OpenGL debug messages
Diffstat (limited to 'engine')
-rw-r--r--engine/src/renderer/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs
index 64d5e3c..8977ac9 100644
--- a/engine/src/renderer/mod.rs
+++ b/engine/src/renderer/mod.rs
@@ -430,6 +430,10 @@ fn opengl_debug_message_cb(
};
}
+ if matches!(severity, MessageSeverity::Notification) {
+ return;
+ }
+
match ty {
MessageType::Error => {
create_event!(Level::ERROR);