Handle clear gpu cache as a global message.

This makes it so if you change texture scaling in the Windows menu on the
pause menu, it actually clears the cache.
This commit is contained in:
Unknown W. Brackets 2016-09-28 22:35:09 -07:00
parent ff66fe7f89
commit 6bbb3c0442
2 changed files with 12 additions and 10 deletions

View file

@ -338,13 +338,6 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
UpdateUIState(UISTATE_MENU);
releaseButtons();
screenManager()->push(new GameSettingsScreen(gamePath_));
} else if (!strcmp(message, "gpu resized") || !strcmp(message, "gpu clear cache")) {
if (gpu) {
gpu->ClearCacheNextFrame();
gpu->Resized();
}
Reporting::UpdateConfig();
RecreateViews();
} else if (!strcmp(message, "gpu dump next frame")) {
if (gpu)
gpu->DumpNextFrame();