Try to fix graphical restriction on OSX
This commit is contained in:
parent
21eace8f80
commit
4fd08fa791
@ -49,13 +49,12 @@ void CentralVideoSettings::init()
|
|||||||
if (!ProfileWorld::isNoGraphics())
|
if (!ProfileWorld::isNoGraphics())
|
||||||
initGL();
|
initGL();
|
||||||
|
|
||||||
#if !defined(__APPLE__)
|
|
||||||
if (!ProfileWorld::isNoGraphics())
|
if (!ProfileWorld::isNoGraphics())
|
||||||
{
|
{
|
||||||
std::string driver((char*)(glGetString(GL_VERSION)));
|
std::string driver((char*)(glGetString(GL_VERSION)));
|
||||||
std::string card((char*)(glGetString(GL_RENDERER)));
|
std::string card((char*)(glGetString(GL_RENDERER)));
|
||||||
GraphicsRestrictions::init(driver, card);
|
GraphicsRestrictions::init(driver, card);
|
||||||
|
#if !defined(__APPLE__)
|
||||||
if (hasGLExtension("GL_AMD_vertex_shader_layer")) {
|
if (hasGLExtension("GL_AMD_vertex_shader_layer")) {
|
||||||
hasVSLayer = true;
|
hasVSLayer = true;
|
||||||
Log::info("GLDriver", "AMD Vertex Shader Layer Present");
|
Log::info("GLDriver", "AMD Vertex Shader Layer Present");
|
||||||
@ -146,8 +145,8 @@ void CentralVideoSettings::init()
|
|||||||
// Bindless textures are all treated RGB even sRGB one
|
// Bindless textures are all treated RGB even sRGB one
|
||||||
m_need_srgb_workaround = true;
|
m_need_srgb_workaround = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned CentralVideoSettings::getGLSLVersion() const
|
unsigned CentralVideoSettings::getGLSLVersion() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user