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.
This commit is contained in:
parent
d52b381426
commit
6d4bafcc2d
1 changed files with 8 additions and 0 deletions
|
@ -24,7 +24,9 @@
|
|||
#include <Corrade/Utility/String.h>
|
||||
#include <Corrade/Utility/Unicode.h>
|
||||
|
||||
#include <Magnum/GL/DebugOutput.h>
|
||||
#include <Magnum/GL/DefaultFramebuffer.h>
|
||||
#include <Magnum/GL/Extensions.h>
|
||||
#include <Magnum/GL/Renderer.h>
|
||||
|
||||
#include <Magnum/ImGuiIntegration/Integration.h>
|
||||
|
@ -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::Extensions::KHR::debug>() &&
|
||||
GL::Context::current().detectedDriver() == GL::Context::DetectedDriver::NVidia)
|
||||
{
|
||||
GL::DebugOutput::setEnabled(GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false);
|
||||
}
|
||||
}
|
||||
|
||||
SaveTool::~SaveTool() {
|
||||
|
|
Loading…
Reference in a new issue