Cocoa Port: Also bring back setWantsBestResolutionOpenGLSurface: in order to support Retina displays on Macs running macOS 10.7 Lion.
This commit is contained in:
parent
3af5423387
commit
558cbf71d2
|
@ -1634,6 +1634,12 @@ static std::unordered_map<NSScreen *, DisplayWindowController *> _screenMap; //
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if defined(MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7)
|
||||||
|
if ([self respondsToSelector:@selector(setWantsBestResolutionOpenGLSurface:)])
|
||||||
|
{
|
||||||
|
[self setWantsBestResolutionOpenGLSurface:YES];
|
||||||
|
}
|
||||||
|
#endif
|
||||||
localOGLContext = [[NSOpenGLContext alloc] initWithCGLContextObj:macOGLCDV->GetContext()];
|
localOGLContext = [[NSOpenGLContext alloc] initWithCGLContextObj:macOGLCDV->GetContext()];
|
||||||
macOGLCDV->SetRenderToCALayer(false);
|
macOGLCDV->SetRenderToCALayer(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue