summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphicsmanager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index d6d8d508f..16e597719 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -445,9 +445,11 @@ void GraphicsManager::updateExtensions()
{ // get extensions in old way
char const *extensions = reinterpret_cast<char const *>(
glGetString(GL_EXTENSIONS));
- logger->log1(extensions);
-
- splitToStringSet(mExtensions, extensions, ' ');
+ if (extensions)
+ {
+ logger->log1(extensions);
+ splitToStringSet(mExtensions, extensions, ' ');
+ }
}
}