Errors showing for OES OpenGL statements in Xcode 6 for iOS8

后端 未结 2 721
半阙折子戏
半阙折子戏 2021-02-01 23:50

Xcode 6 iOS SDK 8.0 in Yosemite is giving me errors for OpenGL ES2 code which compiles fine under Xcode 5

GLuint depthStencilRenderbuffer;
glBindRenderbufferOES(         


        
相关标签:
2条回答
  • 2021-02-02 00:33

    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..

    0 讨论(0)
  • 2021-02-02 00:36

    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.

    0 讨论(0)
提交回复
热议问题