gliUnimplemented error during standard opengl calls on iphone
I have xcode 3.2.5 x64. Im creating a standard iphone openglES template application. By default iphone simulator 4.2 is set.
The problem is, that i cant use some of the opengl funcions, like: glMatrixMode, glEnableClientState and some others, beucase I get EXC_BAD_ACC开发者_JAVA技巧ESS msg. Call stack shows, that last method was gliUnimplemented.
By default opengl context is created with SE2 api
EAGLContext *aContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
, but if I change to SE1 api, those functions works fine and I dont have any errors. Why those functions crashes in SE2 context?
OpenGL ES 2 doesn't have deprecated functionality like matrices, lights or immediate mode.
精彩评论