diff options
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index c299c0b5b..08ea41b0f 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -69,16 +69,20 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent) | |||
| 69 | ConfigureGraphics::~ConfigureGraphics() = default; | 69 | ConfigureGraphics::~ConfigureGraphics() = default; |
| 70 | 70 | ||
| 71 | void ConfigureGraphics::setConfiguration() { | 71 | void ConfigureGraphics::setConfiguration() { |
| 72 | const bool runtime_lock = !Core::System::GetInstance().IsPoweredOn(); | ||
| 73 | |||
| 72 | ui->resolution_factor_combobox->setCurrentIndex( | 74 | ui->resolution_factor_combobox->setCurrentIndex( |
| 73 | static_cast<int>(FromResolutionFactor(Settings::values.resolution_factor))); | 75 | static_cast<int>(FromResolutionFactor(Settings::values.resolution_factor))); |
| 74 | ui->toggle_frame_limit->setChecked(Settings::values.use_frame_limit); | 76 | ui->toggle_frame_limit->setChecked(Settings::values.use_frame_limit); |
| 75 | ui->frame_limit->setValue(Settings::values.frame_limit); | 77 | ui->frame_limit->setValue(Settings::values.frame_limit); |
| 78 | ui->use_compatibility_profile->setEnabled(runtime_lock); | ||
| 76 | ui->use_compatibility_profile->setChecked(Settings::values.use_compatibility_profile); | 79 | ui->use_compatibility_profile->setChecked(Settings::values.use_compatibility_profile); |
| 80 | ui->use_disk_shader_cache->setEnabled(runtime_lock); | ||
| 77 | ui->use_disk_shader_cache->setChecked(Settings::values.use_disk_shader_cache); | 81 | ui->use_disk_shader_cache->setChecked(Settings::values.use_disk_shader_cache); |
| 78 | ui->use_accurate_gpu_emulation->setChecked(Settings::values.use_accurate_gpu_emulation); | 82 | ui->use_accurate_gpu_emulation->setChecked(Settings::values.use_accurate_gpu_emulation); |
| 79 | ui->use_asynchronous_gpu_emulation->setEnabled(!Core::System::GetInstance().IsPoweredOn()); | 83 | ui->use_asynchronous_gpu_emulation->setEnabled(runtime_lock); |
| 80 | ui->use_asynchronous_gpu_emulation->setChecked(Settings::values.use_asynchronous_gpu_emulation); | 84 | ui->use_asynchronous_gpu_emulation->setChecked(Settings::values.use_asynchronous_gpu_emulation); |
| 81 | ui->force_30fps_mode->setEnabled(!Core::System::GetInstance().IsPoweredOn()); | 85 | ui->force_30fps_mode->setEnabled(runtime_lock); |
| 82 | ui->force_30fps_mode->setChecked(Settings::values.force_30fps_mode); | 86 | ui->force_30fps_mode->setChecked(Settings::values.force_30fps_mode); |
| 83 | UpdateBackgroundColorButton(QColor::fromRgbF(Settings::values.bg_red, Settings::values.bg_green, | 87 | UpdateBackgroundColorButton(QColor::fromRgbF(Settings::values.bg_red, Settings::values.bg_green, |
| 84 | Settings::values.bg_blue)); | 88 | Settings::values.bg_blue)); |
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index 68a176032..8f104062d 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |||
| @@ -176,9 +176,13 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) { | |||
| 176 | 176 | ||
| 177 | SDL_SetMainReady(); | 177 | SDL_SetMainReady(); |
| 178 | 178 | ||
| 179 | const SDL_GLprofile profile = Settings::values.use_compatibility_profile | ||
| 180 | ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY | ||
| 181 | : SDL_GL_CONTEXT_PROFILE_CORE; | ||
| 182 | |||
| 179 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); | 183 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); |
| 180 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); | 184 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); |
| 181 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); | 185 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, profile); |
| 182 | SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); | 186 | SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
| 183 | SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); | 187 | SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); |
| 184 | SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); | 188 | SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); |