Files
termux-packages/packages/asymptote/glrender.cc.patch
2023-02-11 07:32:00 +00:00

26 lines
604 B
Diff

--- 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<bool>("iconify");
if(zoom == 0.0) zoom=1.0;