From 847d3106f96f43ff1a075f22f637e739137433c1 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Thu, 24 Jul 2008 16:02:05 +0200 Subject: [PATCH] glLineWidth must not be called in glBegin/glEnd blocks! --- src/starsphere/Starsphere.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/starsphere/Starsphere.cpp b/src/starsphere/Starsphere.cpp index 62a8bcc..81b09e5 100644 --- a/src/starsphere/Starsphere.cpp +++ b/src/starsphere/Starsphere.cpp @@ -520,9 +520,9 @@ void Starsphere::make_axes() Axes = glGenLists(1); glNewList(Axes, GL_COMPILE); - glBegin(GL_LINES); - glLineWidth(2.0); + glLineWidth(2.0); + glBegin(GL_LINES); glColor3f(1.0, 0.0, 0.0); glVertex3f(-axl, 0.0, 0.0); glVertex3f(axl, 0.0, 0.0); @@ -834,11 +834,11 @@ void Starsphere::render(const double timeOfDay) glRotatef(Zrot - rotation_offset, 0.0, 1.0, 0.0); // stars, pulsars, supernovae, grid - if (isFeature(STARS)) glCallList(Stars); - if (isFeature(PULSARS)) glCallList(Pulsars); - if (isFeature(SNRS)) glCallList(SNRs); + if (isFeature(STARS)) glCallList(Stars); + if (isFeature(PULSARS)) glCallList(Pulsars); + if (isFeature(SNRS)) glCallList(SNRs); if (isFeature(CONSTELLATIONS)) glCallList(Constellations); - if (isFeature(GLOBE)) glCallList(sphGrid); + if (isFeature(GLOBE)) glCallList(sphGrid); // observatories move an extra 15 degrees/hr since they were drawn if (isFeature(OBSERVATORIES)) { -- GitLab