mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-26 21:50:11 +00:00
26 lines
604 B
Diff
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;
|