Qt: Fix crash when changing renderer

This commit is contained in:
Stenzek 2023-03-13 01:09:56 +10:00 committed by refractionpcsx2
parent 74763d2156
commit 93490876c9
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ void GraphicsSettingsWidget::updateRendererDependentOptions()
const bool is_hardware = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::OGL ||
type == GSRendererType::VK || type == GSRendererType::Metal);
const bool is_software = (type == GSRendererType::SW);
const bool hw_fixes = (is_hardware && m_ui.enableHWFixes->checkState() == Qt::Checked);
const bool hw_fixes = (is_hardware && m_ui.enableHWFixes && m_ui.enableHWFixes->checkState() == Qt::Checked);
const int prev_tab = m_ui.tabs->currentIndex();
// hw rendering