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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1139 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
5041fa268e
commit
d4bc9c723a
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