UI: Make GPU events more consistent.
This commit is contained in:
parent
7613fd97aa
commit
661b2a3aa8
6 changed files with 17 additions and 22 deletions
|
@ -1051,9 +1051,8 @@ void GameSettingsScreen::onFinish(DialogResult result) {
|
|||
KeyMap::UpdateNativeMenuKeys();
|
||||
|
||||
// Wipe some caches after potentially changing settings.
|
||||
if (gpu)
|
||||
gpu->Resized();
|
||||
Reporting::UpdateConfig();
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
NativeMessageReceived("gpu_clearCache", "");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1169,10 +1168,7 @@ UI::EventReturn GameSettingsScreen::OnPostProcShader(UI::EventParams &e) {
|
|||
}
|
||||
|
||||
UI::EventReturn GameSettingsScreen::OnPostProcShaderChange(UI::EventParams &e) {
|
||||
if (gpu) {
|
||||
gpu->Resized();
|
||||
}
|
||||
Reporting::UpdateConfig();
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue