In the
COCOS2DX 3.x release, in some cases the use of spine skeletal animations and layercolor may result in iphone6s, and Iphone7 on the true machine, other models normal, Xcode debugging found to be in Layercolor::o Ndraw gldrawarrays (Gltriangle_strip, 0, 4) This method crashes, online to find a solution for foreign developers, after testing is indeed available. (Foreign solution original address: https://github.com/cocos2d/cocos2d-x/issues/16543) Solution: 1, find Polygonbatch::flush this method; 2, will:
Gl::bindvao (0);
Glenablevertexattribarray (glprogram::vertex_attrib_position);
Glenablevertexattribarray (Glprogram::vertex_attrib_color);
Glenablevertexattribarray (glprogram::vertex_attrib_tex_coords);
To be replaced by:
Gl::enablevertexattribs (Gl::vertex_attrib_flag_position | Gl::vertex_attrib_flag_color | Gl::vertex_attrib_flag_tex_coord);