Partially revert 31f28f6 to fix selection pointer rendering

pull/733/head
Hleb Valoshka 2020-05-06 20:22:48 +03:00
parent 22c080901b
commit a8b6ed4b80
1 changed files with 9 additions and 0 deletions

View File

@ -1668,6 +1668,7 @@ void Renderer::draw(const Observer& observer,
glMatrixMode(GL_PROJECTION);
glLoadMatrix(m_projMatrix);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadMatrix(m_modelMatrix);
// Render sky grids first--these will always be in the background
@ -1756,11 +1757,19 @@ void Renderer::draw(const Observer& observer,
renderForegroundAnnotations(FontNormal);
glMatrixMode(GL_PROJECTION);
glLoadMatrix(m_projMatrix);
glMatrixMode(GL_MODELVIEW);
if (!selectionVisible && (renderFlags & ShowMarkers))
{
renderSelectionPointer(observer, now, xfrustum, sel);
}
// Pop camera orientation matrix
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);