From 6d4bafcc2d43e49fac1f6e3cb0f8e9bfcf322107 Mon Sep 17 00:00:00 2001 From: William JCM Date: Wed, 18 Aug 2021 17:16:10 +0200 Subject: [PATCH] SaveTool: suppress Nvidia debug message. I probably won't need it, but if someone has a rendering issue, being able to debug it using GPU validation will be useful, and avoiding log pollution will be even better. --- src/SaveTool/SaveTool.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index de7f41b..3cfb068 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -24,7 +24,9 @@ #include #include +#include #include +#include #include #include @@ -153,6 +155,12 @@ SaveTool::SaveTool(const Arguments& arguments): _thread = std::thread{[this]{ checkForUpdates(); }}; _queue.addToast(Toast::Type::Default, "Checking for updates..."); } + + if(GL::Context::current().isExtensionSupported() && + GL::Context::current().detectedDriver() == GL::Context::DetectedDriver::NVidia) + { + GL::DebugOutput::setEnabled(GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false); + } } SaveTool::~SaveTool() {