From 4fd08fa7917c3a330b12c2cdf990f4329471d8d7 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 20 Jan 2015 03:07:23 +0100 Subject: [PATCH] Try to fix graphical restriction on OSX --- src/graphics/central_settings.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/graphics/central_settings.cpp b/src/graphics/central_settings.cpp index 16a969b84..c63534495 100644 --- a/src/graphics/central_settings.cpp +++ b/src/graphics/central_settings.cpp @@ -49,13 +49,12 @@ void CentralVideoSettings::init() if (!ProfileWorld::isNoGraphics()) initGL(); -#if !defined(__APPLE__) if (!ProfileWorld::isNoGraphics()) { std::string driver((char*)(glGetString(GL_VERSION))); std::string card((char*)(glGetString(GL_RENDERER))); GraphicsRestrictions::init(driver, card); - +#if !defined(__APPLE__) if (hasGLExtension("GL_AMD_vertex_shader_layer")) { hasVSLayer = true; Log::info("GLDriver", "AMD Vertex Shader Layer Present"); @@ -146,8 +145,8 @@ void CentralVideoSettings::init() // Bindless textures are all treated RGB even sRGB one m_need_srgb_workaround = true; } - } #endif + } } unsigned CentralVideoSettings::getGLSLVersion() const