Game Development Community

If you're getting the compiler warning: "GL_UNSIGNED_SHORT_1_5_5_5_REV" redefined...

by Richard Skala · in iTorque 2D · 08/13/2010 (12:32 am) · 1 replies

Then simply open the file iPhoneGL2ES.h, and comment out this line:

#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366

Full text of the warning:
../../../../engine/source/platformIPhone/iPhoneGL2ES.h:1348:0 ../../../../engine/source/platformIPhone/iPhoneGL2ES.h:1348:1: warning: "GL_UNSIGNED_SHORT_1_5_5_5_REV" redefined

#1
08/13/2010 (1:27 am)
A safer way would be to use #undef right before it's being redefined - better not modify your SDK in case you compile something non-Torque :)