summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-11-27 20:28:43 -0800
committerDentomologist <dentomologist@gmail.com>2023-11-27 20:52:04 -0800
commitbecbaf50c4cd9e4200cdc7095e8baa9dc5df4413 (patch)
tree0cb95457db4d3883a66a670de0e9c584f32f44c3 /Source/Core/VideoBackends
parent9d415c1dbc7580def98b07b521432fce8ec04dbc (diff)
OGLConfig: Only use Warn Log if OGL extensions are missing
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLConfig.cpp36
1 files changed, 21 insertions, 15 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLConfig.cpp b/Source/Core/VideoBackends/OGL/OGLConfig.cpp
index b51c43aa89..8b662dc03f 100644
--- a/Source/Core/VideoBackends/OGL/OGLConfig.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLConfig.cpp
@@ -739,21 +739,27 @@ bool PopulateConfig(GLContext* m_main_gl_context)
INFO_LOG_FMT(VIDEO, "Video Info: {}, {}, {}", g_ogl_config.gl_vendor, g_ogl_config.gl_renderer,
g_ogl_config.gl_version);
- WARN_LOG_FMT(VIDEO, "Missing OGL Extensions: {}{}{}{}{}{}{}{}{}{}{}{}{}{}",
- g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ",
- g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ",
- g_ActiveConfig.backend_info.bSupportsEarlyZ ? "" : "EarlyZ ",
- g_ogl_config.bSupportsGLPinnedMemory ? "" : "PinnedMemory ",
- supports_glsl_cache ? "" : "ShaderCache ",
- g_ogl_config.bSupportsGLBaseVertex ? "" : "BaseVertex ",
- g_ogl_config.bSupportsGLBufferStorage ? "" : "BufferStorage ",
- g_ogl_config.bSupportsGLSync ? "" : "Sync ",
- g_ogl_config.bSupportsMSAA ? "" : "MSAA ",
- g_ActiveConfig.backend_info.bSupportsSSAA ? "" : "SSAA ",
- g_ActiveConfig.backend_info.bSupportsGSInstancing ? "" : "GSInstancing ",
- g_ActiveConfig.backend_info.bSupportsClipControl ? "" : "ClipControl ",
- g_ogl_config.bSupportsCopySubImage ? "" : "CopyImageSubData ",
- g_ActiveConfig.backend_info.bSupportsDepthClamp ? "" : "DepthClamp ");
+
+ const std::string missing_extensions = fmt::format(
+ "{}{}{}{}{}{}{}{}{}{}{}{}{}{}",
+ g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ",
+ g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ",
+ g_ActiveConfig.backend_info.bSupportsEarlyZ ? "" : "EarlyZ ",
+ g_ogl_config.bSupportsGLPinnedMemory ? "" : "PinnedMemory ",
+ supports_glsl_cache ? "" : "ShaderCache ",
+ g_ogl_config.bSupportsGLBaseVertex ? "" : "BaseVertex ",
+ g_ogl_config.bSupportsGLBufferStorage ? "" : "BufferStorage ",
+ g_ogl_config.bSupportsGLSync ? "" : "Sync ", g_ogl_config.bSupportsMSAA ? "" : "MSAA ",
+ g_ActiveConfig.backend_info.bSupportsSSAA ? "" : "SSAA ",
+ g_ActiveConfig.backend_info.bSupportsGSInstancing ? "" : "GSInstancing ",
+ g_ActiveConfig.backend_info.bSupportsClipControl ? "" : "ClipControl ",
+ g_ogl_config.bSupportsCopySubImage ? "" : "CopyImageSubData ",
+ g_ActiveConfig.backend_info.bSupportsDepthClamp ? "" : "DepthClamp ");
+
+ if (missing_extensions.empty())
+ INFO_LOG_FMT(VIDEO, "All used OGL Extensions are available.");
+ else
+ WARN_LOG_FMT(VIDEO, "Missing OGL Extensions: {}", missing_extensions);
return true;
}