[CCEAGLView swapBuffers] crash

  • 0 libsystem_kernel.dylib 0x00000001b367084c __pthread_fchdir + 36
  • 1 libsystem_c.dylib 0x000000019042c8f4 abort + 96
  • 2 AppleMetalGLRenderer 0x00000001d0468064 0x00000001d0452000 + 90208
  • 3 GLEngine 0x00000001b90be048 0x00000001b8ffc000 + 794688
  • 4 OpenGLES 0x00000001b90ccb74 0x00000001b90c6000 + 27504
  • 5 XXX 0x0000000101fccf78 -[CCEAGLView swapBuffers] + 324
  • 6 XXX 0x0000000101e823c8 -[MainLoop doCaller:] + 304
  • 7 QuartzCore 0x000000018a869640 0x000000018a856000 + 79424
  • 8 IOKit 0x0000000191eaa464 IODispatchCalloutFromCFMessage + 372
  • 9 CoreFoundation 0x000000018768eb54 0x0000000187617000 + 490320

creator 2.3.4
怀疑是以下代码出现了问题

线上Crash,大佬们有没有解决方案

求助。。。