Fix orbit depth bug in rendering

pull/886/head
Levin Li 2020-12-01 15:07:15 +08:00
parent 6848f65ee9
commit 21cba1eaeb
1 changed files with 2 additions and 0 deletions

View File

@ -1308,6 +1308,7 @@ void Renderer::renderOrbit(const OrbitPathListEntry& orbitPath,
glLineStipple(3, 0x5555);
glEnable(GL_LINE_STIPPLE);
#endif
enableDepthTest();
double subdivisionThreshold = pixelSize * 40.0;
@ -1366,6 +1367,7 @@ void Renderer::renderOrbit(const OrbitPathListEntry& orbitPath,
}
}
disableDepthTest();
#ifdef STIPPLED_LINES
glDisable(GL_LINE_STIPPLE);
#endif