diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-18 12:41:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-18 12:41:20 +0300 |
commit | 75e4c0b3b2b6497c4f81bfe5695e6570932162e9 (patch) | |
tree | 39726638167458567f3252d792dc9e5478625190 /src/graphicsmanager.cpp | |
parent | 3fbd6dba28d48db538bfe12493e205013fcfe2ae (diff) | |
download | ManaVerse-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.gz ManaVerse-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.bz2 ManaVerse-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.tar.xz ManaVerse-75e4c0b3b2b6497c4f81bfe5695e6570932162e9.zip |
Add error logging if shader compilation failure.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 4661563e2..bc836d381 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -1188,6 +1188,13 @@ std::string GraphicsManager::errorToString(const GLenum error) return ""; } +void GraphicsManager::logError() +{ + const GLenum error = GraphicsManager::getLastError(); + if (error != GL_NO_ERROR) + logger->log(errorToString(error)); +} + void GraphicsManager::detectVideoSettings() { config.setValue("videodetected", true); |