mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-05-11 03:12:15 +00:00
Change update_config to return if any changes were applied
This commit is contained in:
parent
f1923a4da3
commit
50dcf08b71
2 changed files with 2 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ namespace ultramodern {
|
|||
virtual bool valid() = 0;
|
||||
virtual SetupResult get_setup_result() const { return setup_result; }
|
||||
|
||||
virtual void update_config(const GraphicsConfig& old_config, const GraphicsConfig& new_config) = 0;
|
||||
virtual bool update_config(const GraphicsConfig& old_config, const GraphicsConfig& new_config) = 0;
|
||||
|
||||
virtual void enable_instant_present() = 0;
|
||||
virtual void send_dl(const OSTask* task) = 0;
|
||||
|
|
|
|||
|
|
@ -312,8 +312,7 @@ void gfx_thread_func(uint8_t* rdram, moodycamel::LightweightSemaphore* thread_re
|
|||
}
|
||||
else if (const auto* config_action = std::get_if<UpdateConfigAction>(&action)) {
|
||||
auto new_config = ultramodern::renderer::get_graphics_config();
|
||||
if (old_config != new_config) {
|
||||
renderer_context->update_config(old_config, new_config);
|
||||
if (renderer_context->update_config(old_config, new_config)) {
|
||||
old_config = new_config;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue