mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
make sure we have more than one CPUs before enabling multi-threaded OpenGL
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1139 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a4b30a4eed
commit
6b57f04f57
1 changed files with 3 additions and 2 deletions
|
@ -1050,8 +1050,9 @@ static void GL_Init (void)
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// ericw -- enable multi-threaded OpenGL, gives a decent FPS boost.
|
// ericw -- enable multi-threaded OpenGL, gives a decent FPS boost.
|
||||||
// see: https://developer.apple.com/library/mac/technotes/tn2085/_index.html
|
// https://developer.apple.com/library/mac/technotes/tn2085/
|
||||||
if (kCGLNoError != CGLEnable( CGLGetCurrentContext(), kCGLCEMPEngine))
|
if (host_parms->numcpus > 1 &&
|
||||||
|
kCGLNoError != CGLEnable(CGLGetCurrentContext(), kCGLCEMPEngine))
|
||||||
{
|
{
|
||||||
Con_Warning ("Couldn't enable multi-threaded OpenGL");
|
Con_Warning ("Couldn't enable multi-threaded OpenGL");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue