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 | |
parent | 6646ec0dd30a51e9691c9225554c0325d48c9074 (diff) | |
download | manaplus-ae4e8654915376857008dfc531de372e588ee924.tar.gz manaplus-ae4e8654915376857008dfc531de372e588ee924.tar.bz2 manaplus-ae4e8654915376857008dfc531de372e588ee924.tar.xz manaplus-ae4e8654915376857008dfc531de372e588ee924.zip |
fix crash with broken OpenGL functions.
-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, ' '); + } } } |