From c5fd70049a0ebdc14e49af3e5215521085a44b46 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Aug 2012 01:09:49 +0300 Subject: Fow OpenGL >= 3.0 check extensions in modern way. --- src/graphics.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/graphics.cpp') 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( - glGetString(GL_EXTENSIONS)); - - logger->log1("opengl extensions: "); - logger->log1(glExtensions); - - graphicsManager.updateExtensions(glExtensions); graphicsManager.setGLVersion(); + graphicsManager.initOpenGLFunctions(); + graphicsManager.updateExtensions(); graphicsManager.updateTextureFormat(); updateMemoryInfo(); -- cgit v1.2.3-60-g2f50