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:
Unknown W. Brackets committed 2016-05-27 22:05:30 -07:00
1 parent 27d135d48a
commit a1fbcc3d93
22 files changed
+55 -46

No files matched your search

+2 -4
View File
@@ -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 {