1) calling the multi threading selector in iOS 7 causes a crash

2) it appears to also cause problems at run-time in the release build with crashing

--HG--
branch : nfb
This commit is contained in:
Manjit Bedi
2014-03-12 18:37:10 -07:00
parent 215349d342
commit b702b5901f
2 changed files with 5 additions and 2 deletions

View File

@@ -38,8 +38,9 @@ void KRMeshStreamer::startStreamer()
m_running = true; m_running = true;
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
// FIXME: need to add code check for iOS 7 and also this appears to cause crashing
gMeshStreamerContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup: [EAGLContext currentContext].sharegroup]; gMeshStreamerContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup: [EAGLContext currentContext].sharegroup];
gMeshStreamerContext.multiThreaded = TRUE; //gMeshStreamerContext.multiThreaded = TRUE;
#elif TARGET_OS_MAC #elif TARGET_OS_MAC
NSOpenGLPixelFormatAttribute pixelFormatAttributes[] = NSOpenGLPixelFormatAttribute pixelFormatAttributes[] =
{ {

View File

@@ -41,7 +41,9 @@ void KRTextureStreamer::startStreamer()
#if TARGET_OS_IPHONE #if TARGET_OS_IPHONE
gTextureStreamerContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup: [EAGLContext currentContext].sharegroup]; gTextureStreamerContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup: [EAGLContext currentContext].sharegroup];
gTextureStreamerContext.multiThreaded = TRUE; // FIXME: need to add code check for iOS 7 and also this appears to cause crashing
//gTextureStreamerContext.multiThreaded = TRUE;
#elif TARGET_OS_MAC #elif TARGET_OS_MAC