From 2855d15f9bf2bf7635351a92898546982b9691d3 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Mon, 9 Mar 2015 18:01:44 -1000 Subject: [PATCH] Get graphics working again on Mac and add another snide Android compiler warning =P --- src/video/glvideo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/glvideo.c b/src/video/glvideo.c index 56da60c5..885ba62b 100644 --- a/src/video/glvideo.c +++ b/src/video/glvideo.c @@ -21,13 +21,19 @@ #ifdef __APPLE__ #import +#define USE_VAO 1 #endif // TODO: implement 3D CRT object, possibly with perspective drawing? #define PERSPECTIVE 0 // 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 +#elif !defined(USE_VAO) +#define USE_VAO 1 +#endif enum { POS_ATTRIB_IDX,