mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 15:41:07 +00:00
Qt/HacksWidget: Fix backend feature support checks
This commit is contained in:
parent
9b6c9252e4
commit
5d37b2b951
@ -124,11 +124,10 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
|
|||||||
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
|
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
|
||||||
m_disable_bounding_box->setEnabled(bbox);
|
m_disable_bounding_box->setEnabled(bbox);
|
||||||
|
|
||||||
if (!gpu_texture_decoding)
|
const QString tooltip = tr("%1 doesn't support this feature on your system.").arg(backend_name);
|
||||||
m_gpu_texture_decoding->setToolTip(tr("%1 doesn't support this feature.").arg(backend_name));
|
|
||||||
|
|
||||||
if (!bbox)
|
m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QStringLiteral(""));
|
||||||
m_disable_bounding_box->setToolTip(tr("%1 doesn't support this feature.").arg(backend_name));
|
m_disable_bounding_box->setToolTip(!bbox ? tooltip : QStringLiteral(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HacksWidget::ConnectWidgets()
|
void HacksWidget::ConnectWidgets()
|
||||||
|
@ -91,10 +91,11 @@ void VideoBackend::InitBackendInfo()
|
|||||||
g_Config.backend_info.bSupportsLargePoints = true;
|
g_Config.backend_info.bSupportsLargePoints = true;
|
||||||
g_Config.backend_info.bSupportsPartialDepthCopies = true;
|
g_Config.backend_info.bSupportsPartialDepthCopies = true;
|
||||||
|
|
||||||
// TODO: There is a bug here, if texel buffers are not supported the graphics options
|
// TODO: There is a bug here, if texel buffers or SSBOs/atomics are not supported the graphics
|
||||||
// will show the option when it is not supported. The only way around this would be
|
// 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.
|
// creating a context when calling this function to determine what is available.
|
||||||
g_Config.backend_info.bSupportsGPUTextureDecoding = true;
|
g_Config.backend_info.bSupportsGPUTextureDecoding = true;
|
||||||
|
g_Config.backend_info.bSupportsBBox = true;
|
||||||
|
|
||||||
// Overwritten in Render.cpp later
|
// Overwritten in Render.cpp later
|
||||||
g_Config.backend_info.bSupportsDualSourceBlend = true;
|
g_Config.backend_info.bSupportsDualSourceBlend = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user