diff --git a/GPU/GLES/ShaderManager.cpp b/GPU/GLES/ShaderManager.cpp index 26ea5e2ded..ab982107d7 100644 --- a/GPU/GLES/ShaderManager.cpp +++ b/GPU/GLES/ShaderManager.cpp @@ -28,6 +28,7 @@ #include "math/lin/matrix4x4.h" +#include "Core/Reporting.h" #include "../GPUState.h" #include "../ge_constants.h" #include "ShaderManager.h" @@ -52,6 +53,7 @@ Shader::Shader(const char *code, uint32_t shaderType) { ERROR_LOG(G3D, "Error in shader compilation!\n"); ERROR_LOG(G3D, "Info log: %s\n", infoLog); ERROR_LOG(G3D, "Shader source:\n%s\n", (const char *)code); + Reporting::ReportMessage("Error in shader compilation: info: %s / code: %s", infoLog, (const char *)code); } else { DEBUG_LOG(G3D, "Compiled shader:\n%s\n", (const char *)code); } diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 3a090a175b..5921aef3a9 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -19,6 +19,7 @@ #include #include "Core/MemMap.h" +#include "Core/Reporting.h" #include "GPU/ge_constants.h" #include "GPU/GPUState.h" #include "GPU/GLES/TextureCache.h" @@ -671,6 +672,7 @@ void TextureCache::SetTexture() { u32 format = gstate.texformat & 0xF; if (format >= 11) { + Reporting::ReportMessage("Unknown texture format %i", format); ERROR_LOG(G3D, "Unknown texture format %i", format); format = 0; } @@ -1087,6 +1089,7 @@ void TextureCache::LoadTextureLevel(TexCacheEntry &entry, int level) break; default: + Reporting::ReportMessage("Unknown texture format %i", entry.format); ERROR_LOG(G3D, "Unknown Texture Format %d!!!", entry.format); finalBuf = tmpTexBuf32; return; diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index 43ba60d04f..c08391dc86 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -21,6 +21,7 @@ #include "../../Core/MemMap.h" #include "../../Core/Host.h" #include "../../Core/System.h" +#include "../../Core/Reporting.h" #include "../../native/gfx_es2/gl_state.h" #include "../../native/ext/cityhash/city.h" @@ -117,6 +118,8 @@ void TransformDrawEngine::GLLost() { void TransformDrawEngine::DrawBezier(int ucount, int vcount) { u16 indices[3 * 3 * 6]; + Reporting::ReportMessage("Unsupported bezier curve"); + // Generate indices for a rectangular mesh. int c = 0; for (int y = 0; y < 3; y++) { @@ -160,6 +163,8 @@ void TransformDrawEngine::DrawBezier(int ucount, int vcount) { void TransformDrawEngine::DrawSpline(int ucount, int vcount, int utype, int vtype) { u16 indices[3 * 3 * 6]; + Reporting::ReportMessage("Unsupported spline curve"); + // Generate indices for a rectangular mesh. int c = 0; for (int y = 0; y < 3; y++) { diff --git a/Windows/EmuThread.cpp b/Windows/EmuThread.cpp index 88c0eb20a4..b930ddca0f 100644 --- a/Windows/EmuThread.cpp +++ b/Windows/EmuThread.cpp @@ -5,6 +5,7 @@ #include "StringUtil.h" #include "../Globals.h" #include "EmuThread.h" +#include "../Core/Reporting.h" #include "../Core/MemMap.h" #include "../Core/Core.h" #include "../Core/Host.h" @@ -65,6 +66,7 @@ DWORD TheThread(LPVOID x) { std::string error_string; if (!host->InitGL(&error_string)) { + Reporting::ReportMessage("OpenGL init error: %s", error_string.c_str()); std::string full_error = StringFromFormat( "Failed initializing OpenGL. Try upgrading your graphics drivers.\n\nError message:\n\n%s", error_string.c_str()); MessageBoxA(0, full_error.c_str(), "OpenGL Error", MB_OK | MB_ICONERROR); ERROR_LOG(BOOT, full_error.c_str());