summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp7
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);