Cocoa Design Patterns
Learning OpenGL ES for iOS
Presentations
Buy at Amazon Now
  • Cocoa Design Patterns
    Cocoa Design Patterns
    by Erik M. Buck, Donald A. Yacktman
  • Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming
    by Erik M. Buck

Errata > OpenGLES_Ch4_1 example: error: Draw Call Exceeded Array Buffer Bounds

OpenGLES_Ch4_1 example have a error during frame debugging: ../../../AGLKit/AGLKVertexAttribArrayBuffer.m: error: Draw Call Exceeded Array Buffer Bounds: This draw call accessed a vertex outside the range of an array buffer in use. ("glDrawArrays(mode, first, count); // Step 6" in - (void)drawArrayWithMode:(GLenum)mode).
June 12, 2013 | Unregistered CommenterDeveloper
I am unable to reproduce this problem: iOS 6.0.1 (10A523)

http://cocoadesignpatterns.squarespace.com/storage/OpenGlFrameDebug.png

There is even a related assertion in the example:

NSAssert(self.bufferSizeBytes >=
((first + count) * self.stride),
@"Attempt to draw more vertex data than available.");
June 19, 2013 | Registered CommenterErik Buck
Screen from OpenGL ES Analysis: http://imageshack.us/a/img7/7916/pvw.png
June 25, 2013 | Unregistered CommenterDeveloper
This problem is due to an bug in Xcode:
https://devforums.apple.com/message/839205#839205
https://devforums.apple.com/message/839254#839254
July 3, 2013 | Unregistered CommenterDeveloper