--- a/glrender.cc +++ b/glrender.cc @@ -1902,8 +1902,12 @@ bool NVIDIA() { +#ifdef __ANDROID__ + return false; +#else char *GLSL_VERSION=(char *) glGetString(GL_SHADING_LANGUAGE_VERSION); return string(GLSL_VERSION).find("NVIDIA") != string::npos; +#endif } // angle=0 means orthographic. @@ -1908,7 +1912,9 @@ double *background, size_t nlightsin, triple *lights, double *diffuse, double *specular, bool view, int oldpid) { +#ifdef HAVE_LIBGLUT gettimeofday(&lasttime,NULL); +#endif Iconify=getSetting("iconify"); if(zoom == 0.0) zoom=1.0;