add command-line option --disable_retina for Mac

improve TimeSeries and Dof6ConstaintTutorial
This commit is contained in:
Erwin Coumans
2015-08-07 16:05:03 -07:00
parent de4dcdbb18
commit 3c0e67298a
6 changed files with 54 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ void dumpInfo(void)
extern bool gAllowRetina;
// -------------------- View ------------------------
@@ -398,7 +398,10 @@ void MacOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci)
//support HighResolutionOSX for Retina Macbook
if (ci.m_openglVersion>=3)
{
[m_internalData->m_myview setWantsBestResolutionOpenGLSurface:YES];
if (gAllowRetina)
{
[m_internalData->m_myview setWantsBestResolutionOpenGLSurface:YES];
}
}
NSSize sz;
sz.width = 1;