Cocoa Port: Also bring back setWantsBestResolutionOpenGLSurface: in order to support Retina displays on Macs running macOS 10.7 Lion.

This commit is contained in:
rogerman 2017-01-12 10:57:59 -08:00
parent 3af5423387
commit 558cbf71d2
1 changed files with 6 additions and 0 deletions

View File

@ -1634,6 +1634,12 @@ static std::unordered_map<NSScreen *, DisplayWindowController *> _screenMap; //
}
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()];
macOGLCDV->SetRenderToCALayer(false);
}