VideoCommon: Fixup #14336

whoops

Closes https://bugs.dolphin-emu.org/issues/14024
This commit is contained in:
Martino Fontana
2026-04-13 22:23:06 +02:00
parent b62bfe4b30
commit 8971b3b67a
3 changed files with 11 additions and 7 deletions

View File

@@ -27,10 +27,8 @@ HacksWidget::HacksWidget(GraphicsPane* gfx_pane) : m_game_layer{gfx_pane->GetCon
connect(gfx_pane, &GraphicsPane::BackendChanged, this, &HacksWidget::OnBackendChanged);
OnBackendChanged(QString::fromStdString(Config::Get(Config::MAIN_GFX_BACKEND)));
connect(gfx_pane, &GraphicsPane::UpdateGPUTextureDecoding, this, [this] {
m_gpu_texture_decoding->setEnabled(
!Get(m_game_layer, Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION));
});
connect(gfx_pane, &GraphicsPane::UpdateGPUTextureDecoding, this,
&HacksWidget::UpdateGPUTextureDecodingEnabled);
}
void HacksWidget::CreateWidgets()
@@ -130,7 +128,7 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
const bool bbox = g_backend_info.bSupportsBBox;
const bool gpu_texture_decoding = g_backend_info.bSupportsGPUTextureDecoding;
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
UpdateGPUTextureDecodingEnabled();
m_disable_bounding_box->setEnabled(bbox);
const QString tooltip = tr("%1 doesn't support this feature on your system.")
@@ -263,6 +261,13 @@ void HacksWidget::AddDescriptions()
m_vi_skip->SetDescription(tr(TR_VI_SKIP_DESCRIPTION));
}
void HacksWidget::UpdateGPUTextureDecodingEnabled()
{
const bool gpu_texture_decoding = g_backend_info.bSupportsGPUTextureDecoding;
m_gpu_texture_decoding->setEnabled(
gpu_texture_decoding && !Get(m_game_layer, Config::GFX_ENHANCE_ARBITRARY_MIPMAP_DETECTION));
}
void HacksWidget::UpdateDeferEFBCopiesEnabled()
{
// We disable the checkbox for defer EFB copies when both EFB and XFB copies to texture are