summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-27 14:12:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-27 14:12:28 +0300
commitae4e8654915376857008dfc531de372e588ee924 (patch)
treee335df6bfc7700618635cf98efe7daf658a88600 /src/graphicsmanager.cpp
parent6646ec0dd30a51e9691c9225554c0325d48c9074 (diff)
downloadmanaplus-ae4e8654915376857008dfc531de372e588ee924.tar.gz
manaplus-ae4e8654915376857008dfc531de372e588ee924.tar.bz2
manaplus-ae4e8654915376857008dfc531de372e588ee924.tar.xz
manaplus-ae4e8654915376857008dfc531de372e588ee924.zip
fix crash with broken OpenGL functions.
Diffstat (limited to 'src/graphicsmanager.cpp')
-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, ' ');
+ }
}
}