mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces cross linkage issues.
This commit is contained in:
1 parent
27d135d48a
commit
a1fbcc3d93
22 files changed
+55
-46
No files matched your search
@@ -42,7 +42,6 @@
|
||||
#include "GPU/Vulkan/ShaderManagerVulkan.h"
|
||||
#include "GPU/Vulkan/DrawEngineVulkan.h"
|
||||
#include "GPU/Common/TextureDecoder.h"
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
|
||||
#ifdef _M_SSE
|
||||
#include <xmmintrin.h>
|
||||
@@ -1360,9 +1359,9 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry,VulkanPushBuffe
|
||||
|
||||
I18NCategory *err = GetI18NCategory("Error");
|
||||
if (scaleFactor > 1) {
|
||||
osm.Show(err->T("Warning: Video memory FULL, reducing upscaling and switching to slow caching mode"), 2.0f);
|
||||
host->NotifyUserMessage(err->T("Warning: Video memory FULL, reducing upscaling and switching to slow caching mode"), 2.0f);
|
||||
} else {
|
||||
osm.Show(err->T("Warning: Video memory FULL, switching to slow caching mode"), 2.0f);
|
||||
host->NotifyUserMessage(err->T("Warning: Video memory FULL, switching to slow caching mode"), 2.0f);
|
||||
}
|
||||
|
||||
scaleFactor = 1;
|
||||
|
||||
Reference in new issue
Block a user