summaryrefslogtreecommitdiff
path: root/graphics/asymptote/glrender.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-05 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2019-10-05 03:01:15 +0000
commit72c9345e5bafe708888bf65448a81d1aee8275ed (patch)
treea1a99929b3d7307572844833f09ad7ba5ad1405d /graphics/asymptote/glrender.cc
parent9d9c04e14d0da9dd7829d0ec896aabfd50414fd8 (diff)
CTAN sync 201910050301
Diffstat (limited to 'graphics/asymptote/glrender.cc')
-rw-r--r--graphics/asymptote/glrender.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/asymptote/glrender.cc b/graphics/asymptote/glrender.cc
index 0cd84cc394..28bfdb8a47 100644
--- a/graphics/asymptote/glrender.cc
+++ b/graphics/asymptote/glrender.cc
@@ -162,7 +162,7 @@ static const double pi=acos(-1.0);
static const double degrees=180.0/pi;
static const double radians=1.0/degrees;
-double Background[4];
+double *Background;
size_t Nlights=1; // Maximum number of lights compiled in shader
size_t nlights; // Actual number of lights
size_t nlights0;
@@ -305,7 +305,7 @@ bool Xspin,Yspin,Zspin;
bool Animate;
bool Step;
-#ifdef HAVE_LIBGLUT
+#ifdef HAVE_GL
void idle()
{
glutIdleFunc(NULL);
@@ -1513,6 +1513,7 @@ void glrender(const string& prefix, const picture *pic, const string& format,
Oldpid=oldpid;
Shift=shift;
Margin=margin;
+ Background=background;
Xmin=m.getx();
Xmax=M.getx();
@@ -1616,8 +1617,6 @@ void glrender(const string& prefix, const picture *pic, const string& format,
#ifdef HAVE_GL
for(int i=0; i < 16; ++i)
T[i]=t[i];
- for(int i=0; i < 4; ++i)
- Background[i]=background[i];
remesh=true;
Aspect=((double) Width)/Height;