Errors showing for OES OpenGL statements in Xcode 6 for iOS8

雨燕双飞 提交于 2019-12-02 19:25:45

Try:

#import <OpenGLES/ES2/glext.h>

or

#import <OpenGLES/ES3/glext.h>

works for me.

Without it, app which correctlyworking on xcode 6 + ios7 can find GL_FALSE and others..

I think @reto-koradi's comment is correct. I had a problem in my code that was similarly broken in iOS8. They've changed how some of the headers include other headers so here are the steps I took:

  1. Got to Xcode5 and locate the same line that is broken in Xcode6/iOS8.
  2. Command-click that link and find out which header file it's in.
  3. Go back to Xcode6/iOS8 and find that file.

For me it was #import <OpenGLES/ES2/glext.h> because some of the glextensions I was using was missing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!