GUI: Do not run shader test when shader is cleared

This commit is contained in:
Eugene Sandulenko 2022-10-30 23:07:35 +01:00
parent ab12e7fe01
commit 9522773ca8
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -833,7 +833,7 @@ void OptionsDialog::apply() {
shader = ConfMan.get("shader", _domain);
// If shader was changed, show the test dialog
if (previousShader != shader && !shader.empty()) {
if (previousShader != shader && !shader.empty() && shader != "default") {
if (!testGraphicsSettings()) {
if (previousShader == _c("None", "shader"))
previousShader = "default";