diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-11-28 04:19:24 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-11-28 05:13:21 -0500 |
| commit | c792961000a6bc8fa33dabdf42d07a25e44e8662 (patch) | |
| tree | 8a6798e6f30a91d4f2a1319b16d980f980984987 /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | c2c8a14966dcea8d86a5ea5bb2eeb0f694002425 (diff) | |
Common: Unify logging namespace with Common
Previously the logging was a in a little bit of a disarray. Some things
were in namespaces, and other things were not.
Given this code will feature a bit of restructuring during the
transition over to fmt, this is a good time to unify it under a single
namespace and also remove functions and types from the global namespace.
Now, all functions and types are under the Common::Log namespace. The
only outliers being, of course, the preprocessor macros.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index f6a5cdbe77..8c077d1a07 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -702,7 +702,8 @@ Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context, float backbuffer_ glDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, true); glDebugMessageCallbackARB(ErrorCallback, nullptr); } - if (LogManager::GetInstance()->IsEnabled(LogTypes::HOST_GPU, LogTypes::LERROR)) + if (Common::Log::LogManager::GetInstance()->IsEnabled(Common::Log::HOST_GPU, + Common::Log::LERROR)) { glEnable(GL_DEBUG_OUTPUT); } @@ -1053,10 +1054,15 @@ void Renderer::PresentBackbuffer() { if (g_ogl_config.bSupportsDebug) { - if (LogManager::GetInstance()->IsEnabled(LogTypes::HOST_GPU, LogTypes::LERROR)) + if (Common::Log::LogManager::GetInstance()->IsEnabled(Common::Log::HOST_GPU, + Common::Log::LERROR)) + { glEnable(GL_DEBUG_OUTPUT); + } else + { glDisable(GL_DEBUG_OUTPUT); + } } // Swap the back and front buffers, presenting the image. |
