Im testing on an iphone 5C an iPhone5S and an Iphone6, but it only happens on iphone 5c.
It crashes in this part of my code:
extern "C" bool AllocateRenderBufferStorageFromEAGLLayer(void* eaglContext, void* eaglLayer)
{
return [(__bridge EAGLContext*)eaglContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:(__bridge CAEAGLLayer*)eaglLayer];
}
and it says EXC_BAD_ACCESS
can someone tell me how can i fix it?
↧