UI: Make GPU events more consistent.

This commit is contained in:
Unknown W. Brackets 2017-04-27 20:03:50 -07:00
parent 7613fd97aa
commit 661b2a3aa8
6 changed files with 17 additions and 22 deletions

View file

@ -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;
}