mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +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
@@ -46,8 +46,6 @@
|
||||
#include "GPU/GLES/DrawEngineGLES.h"
|
||||
#include "GPU/GLES/ShaderManager.h"
|
||||
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
|
||||
// #define DEBUG_READ_PIXELS 1
|
||||
|
||||
static const char tex_fs[] =
|
||||
@@ -180,9 +178,9 @@ void FramebufferManager::CompileDraw2DProgram() {
|
||||
}
|
||||
}
|
||||
if (!firstLine.empty()) {
|
||||
osm.Show("Post-shader error: " + firstLine + "...", 10.0f, 0xFF3090FF);
|
||||
host->NotifyUserMessage("Post-shader error: " + firstLine + "...", 10.0f, 0xFF3090FF);
|
||||
} else {
|
||||
osm.Show("Post-shader error, see log for details", 10.0f, 0xFF3090FF);
|
||||
host->NotifyUserMessage("Post-shader error, see log for details", 10.0f, 0xFF3090FF);
|
||||
}
|
||||
usePostShader_ = false;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user