diff options
author | HampusM <hampus@hampusmat.com> | 2024-03-01 19:13:13 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-03-01 19:13:13 +0100 |
commit | 2db4158d0eaa05b9a7cc7b2e18567cdb38e45a20 (patch) | |
tree | afdc16df0976f6889e2f562542c666ab3aab7859 /engine/src/renderer/mod.rs | |
parent | 0cb595fe518dabf85256b612988ea73ae7b91981 (diff) |
fix(engine): prevent logging notification OpenGL debug messages
Diffstat (limited to 'engine/src/renderer/mod.rs')
-rw-r--r-- | engine/src/renderer/mod.rs | 4 |
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); |