diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-27 14:12:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-27 14:12:28 +0300 |
commit | ae4e8654915376857008dfc531de372e588ee924 (patch) | |
tree | e335df6bfc7700618635cf98efe7daf658a88600 /src | |
parent | 6646ec0dd30a51e9691c9225554c0325d48c9074 (diff) | |
download | manaverse-ae4e8654915376857008dfc531de372e588ee924.tar.gz manaverse-ae4e8654915376857008dfc531de372e588ee924.tar.bz2 manaverse-ae4e8654915376857008dfc531de372e588ee924.tar.xz manaverse-ae4e8654915376857008dfc531de372e588ee924.zip |
fix crash with broken OpenGL functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 8 |
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, ' '); + } } } |