Thursday, October 16, 2014

[Unity] Use of undeclared identifier 'GL_RGBA8_OES' in xcode 6

I'm having a similar issue with my Unity project not compiling with the Xcode 6 and the iOS 8 SDK. Xcode 6 gives me five errors, all in the GlesHelper.mm file (which, if I'm not mistaken, is part of Unity). All five are semantic issues:
  • Line 63: Use of undeclared identifier 'GL_RGBA8_OES'
  • Line 123: Use of undeclared identifier 'glRenderbufferStorageMultisampleAPPLE'; did you mean 'glRenderbufferStorageMultisample'?
  • Line 133: Use of undeclared identifier 'GL_DEPTH_COMPONENT24_OES'
  • Line 135: Use of undeclared identifier 'GL_DEPTH24_STENCIL8_OES'
  • Line 143: Use of undeclared identifier 'glRenderbufferStorageMultisampleAPPLE'; did you mean 'glRenderbufferStorageMultisample'?
Answer:

Please add
#include <OpenGLES/ES2/glext.h>

1 comment:

  1. Harrah's Casino Resort, Las Vegas - Mapyro
    Hotel 목포 출장샵 Amenities. Property Location 사천 출장마사지 Located in Las Vegas Strip, 의왕 출장샵 Harrah's Casino Resort is within 동두천 출장샵 a 10-minute walk 세종특별자치 출장샵 of Golden Nugget Casino and LINQ Promenade

    ReplyDelete