Try to fix graphical restriction on OSX

This commit is contained in:
Vincent Lejeune 2015-01-20 03:07:23 +01:00
parent 21eace8f80
commit 4fd08fa791

View File

@ -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