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 > Exc Bad Access

Hi,

Thank you for a very useful book. Chp 12 works nicely as described. However, when I try to implement it as a separate view controller "B", i.e put a "contents page" view controller "A" before that, it works the first time round, but when i close "B" (with all the buffers deleted and EAGL context cleared) and open it again, I get an Exc_bad_access when TETerrainTile.m glDrawElements is called in the Draw subroutine. May I request your help to point me in the right direction to solve this? Thanks much!
February 7, 2015 | Unregistered CommenterUkusan
If you email your project as a zip file, I'll see if I can spot the problem.
March 3, 2015 | Registered CommenterErik Buck