clang-format fix

This commit is contained in:
B3n30 2020-05-04 12:14:40 +02:00
parent 922a5f738a
commit ed48f8accf
3 changed files with 7 additions and 4 deletions

View File

@ -115,7 +115,8 @@ void Config::ReadValues() {
// Separable shader is broken on macos with Intel GPU thanks to poor drivers.
// We still want to provide this option for test/development purposes, but disable it by
// default.
Settings::values.separable_shader = sdl2_config->GetBoolean("Renderer", "separable_shader", false);
Settings::values.separable_shader =
sdl2_config->GetBoolean("Renderer", "separable_shader", false);
#endif
Settings::values.shaders_accurate_mul =
sdl2_config->GetBoolean("Renderer", "shaders_accurate_mul", false);

View File

@ -433,10 +433,11 @@ void Config::ReadRendererValues() {
ReadSetting(QStringLiteral("use_hw_renderer"), true).toBool();
Settings::values.use_hw_shader = ReadSetting(QStringLiteral("use_hw_shader"), true).toBool();
#ifdef __APPLE__
// Hardware shader is broken on macos thanks to poor drivers.
// Hardware shader is broken on macos with Intel GPUs thanks to poor drivers.
// We still want to provide this option for test/development purposes, but disable it by
// default.
Settings::values.separable_shader = ReadSetting(QStringLiteral("separable_shader"), false).toBool();
Settings::values.separable_shader =
ReadSetting(QStringLiteral("separable_shader"), false).toBool();
#endif
Settings::values.shaders_accurate_mul =
ReadSetting(QStringLiteral("shaders_accurate_mul"), false).toBool();

View File

@ -37,7 +37,8 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
if (state == Qt::Checked) {
QMessageBox::warning(
this, tr("Hardware Shader Warning"),
tr("Separable Shader support is broken on macOS with Intel GPUs, and will cause graphical issues "
tr("Separable Shader support is broken on macOS with Intel GPUs, and will cause "
"graphical issues "
"like showing a black screen.<br><br>The option is only there for "
"test/development purposes. If you experience graphical issues with Hardware "
"Shader, please turn it off."));