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:
@@ -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[] =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user