我在以下代码中遇到了崩溃:
-(void)EAGLViewNeedsRedraw:(EAGLView *)EAGLView {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(-100.0f, -60.0f, -180.0f);
glMultMatrixf(transform);
glVertexPointer(3, GL_FLOAT, 0, &fiber_model_vertices[0]);
glEnableClientState(GL_VERTEX_ARRAY);
// Do the drawing
for (int i=0; i<[tracF num_fibers];i++) {
glDrawArrays(GL_LINE_STRIP,
[tracF array_offset:i],
[tracF num_vertices_for_fiber:i]);
}
}
它在 276 次调用后崩溃glDrawArrays
。glDrawArrays
通话次数有限制吗?