effekseer / EffekseerForCocos2d-x

MIT License
42 stars 18 forks source link

iOS crash on call to VertexBuffer::Unlock #13

Open sp-rafael-lecina opened 4 years ago

sp-rafael-lecina commented 4 years ago

Hi

I am experiencing a crash on https://github.com/effekseer/EffekseerForCocos2d-x/blob/7f01bfecd5abd92d039d7effa2e6107217f4e7ed/Players/Cocos2d-x_v3/EffekseerRendererNative.cpp#L7191 for iOS because previous call to GLExt::glMapBuffer is returning null. Calling glGetError after that returns GL_INVAILD_OPERATION

The device I'm using is an iPhone 6 with iOS 10.3.2

If I avoid using buffer mapping (by forcing avoidIOS122 to true some lines above) everything seems to work fine

sp-rafael-lecina commented 4 years ago

May that be related to dong this https://github.com/effekseer/EffekseerForCocos2d-x/blob/7f01bfecd5abd92d039d7effa2e6107217f4e7ed/Players/Cocos2d-x_v3/EffekseerRendererNative.cpp#L2493 checking for the extension like in code below for non apple targets? https://github.com/effekseer/EffekseerForCocos2d-x/blob/7f01bfecd5abd92d039d7effa2e6107217f4e7ed/Players/Cocos2d-x_v3/EffekseerRendererNative.cpp#L2518

durswd commented 4 years ago

I will fix it

durswd commented 4 years ago

I'm sorry. I cannot reproduce it now. I need more information or get iPhone 6 with iOS 10.3.2.

durswd commented 4 years ago

I added a hack code. Please try it