diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-14 01:09:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-14 01:57:57 +0300 |
commit | c5fd70049a0ebdc14e49af3e5215521085a44b46 (patch) | |
tree | 6654ed70f48e954d39926ff3a14a26d588479cab /src/graphics.cpp | |
parent | d589fe649959239c268b1affddee8a453f96e969 (diff) | |
download | manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2 manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip |
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 2700df10a..05083506b 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -166,14 +166,9 @@ bool Graphics::setOpenGLMode() logger->log("Using OpenGL %s double buffering.", (gotDoubleBuffer ? "with" : "without")); - char const *glExtensions = reinterpret_cast<char const *>( - glGetString(GL_EXTENSIONS)); - - logger->log1("opengl extensions: "); - logger->log1(glExtensions); - - graphicsManager.updateExtensions(glExtensions); graphicsManager.setGLVersion(); + graphicsManager.initOpenGLFunctions(); + graphicsManager.updateExtensions(); graphicsManager.updateTextureFormat(); updateMemoryInfo(); |