Errors showing for OES OpenGL statements in Xcode 6 for iOS8

后端 未结 2 746
半阙折子戏
半阙折子戏 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: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 because some of the glextensions I was using was missing.

提交回复
热议问题