Get graphics working again on Mac and add another snide Android compiler warning =P

This commit is contained in:
Aaron Culliney 2015-03-09 18:01:44 -10:00 committed by Aaron Culliney
parent d657ab8c46
commit 2855d15f9b

View File

@ -21,13 +21,19 @@
#ifdef __APPLE__ #ifdef __APPLE__
#import <CoreFoundation/CoreFoundation.h> #import <CoreFoundation/CoreFoundation.h>
#define USE_VAO 1
#endif #endif
// TODO: implement 3D CRT object, possibly with perspective drawing? // TODO: implement 3D CRT object, possibly with perspective drawing?
#define PERSPECTIVE 0 #define PERSPECTIVE 0
// VAO optimization (may not be available on all platforms) // VAO optimization (may not be available on all platforms)
#ifdef ANDROID
#warning YAY Awesome! Various older Android and Android-ish devices (*cough* Kindle *cough*) have buggy OpenGL VAO support, so do like Nancy and just say no
#define USE_VAO 0 #define USE_VAO 0
#elif !defined(USE_VAO)
#define USE_VAO 1
#endif
enum { enum {
POS_ATTRIB_IDX, POS_ATTRIB_IDX,