summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-14 01:09:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-14 01:57:57 +0300
commitc5fd70049a0ebdc14e49af3e5215521085a44b46 (patch)
tree6654ed70f48e954d39926ff3a14a26d588479cab /src/graphics.cpp
parentd589fe649959239c268b1affddee8a453f96e969 (diff)
downloadplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp9
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();