diff options
| author | Techjar <tecknojar@gmail.com> | 2019-03-29 08:38:17 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2019-03-29 08:45:21 -0400 |
| commit | 5d37b2b951930f59add9880a674fbf178115c154 (patch) | |
| tree | 7592a36e197612366c01e03f64d6fa51aacab1e8 /Source/Core | |
| parent | 9b6c9252e4dafe91918d91cdabc0c6e27ff9136f (diff) | |
Qt/HacksWidget: Fix backend feature support checks
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp | 7 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/OGL/main.cpp | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp index d9d492df10..11040d6354 100644 --- a/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp @@ -124,11 +124,10 @@ void HacksWidget::OnBackendChanged(const QString& backend_name) m_gpu_texture_decoding->setEnabled(gpu_texture_decoding); m_disable_bounding_box->setEnabled(bbox); - if (!gpu_texture_decoding) - m_gpu_texture_decoding->setToolTip(tr("%1 doesn't support this feature.").arg(backend_name)); + const QString tooltip = tr("%1 doesn't support this feature on your system.").arg(backend_name); - if (!bbox) - m_disable_bounding_box->setToolTip(tr("%1 doesn't support this feature.").arg(backend_name)); + m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QStringLiteral("")); + m_disable_bounding_box->setToolTip(!bbox ? tooltip : QStringLiteral("")); } void HacksWidget::ConnectWidgets() diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index 22dba1a21f..82e49dfc6f 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -91,10 +91,11 @@ void VideoBackend::InitBackendInfo() g_Config.backend_info.bSupportsLargePoints = true; g_Config.backend_info.bSupportsPartialDepthCopies = true; - // TODO: There is a bug here, if texel buffers are not supported the graphics options - // will show the option when it is not supported. The only way around this would be + // TODO: There is a bug here, if texel buffers or SSBOs/atomics are not supported the graphics + // options will show the option when it is not supported. The only way around this would be // creating a context when calling this function to determine what is available. g_Config.backend_info.bSupportsGPUTextureDecoding = true; + g_Config.backend_info.bSupportsBBox = true; // Overwritten in Render.cpp later g_Config.backend_info.bSupportsDualSourceBlend = true; |
