Tech ENABLE_GL_SHADERS_ATTRIBUTES - Removed remaining pairs glPushMatrix()/glPopMatrix()
This commit is contained in:
parent
27861fa0bd
commit
9d2314557d
@ -5764,6 +5764,7 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale()
|
||||
void GLCanvas3D::_render_overlays()
|
||||
{
|
||||
glsafe(::glDisable(GL_DEPTH_TEST));
|
||||
#if !ENABLE_GL_SHADERS_ATTRIBUTES
|
||||
glsafe(::glPushMatrix());
|
||||
glsafe(::glLoadIdentity());
|
||||
// ensure that the textures are renderered inside the frustrum
|
||||
@ -5772,6 +5773,7 @@ void GLCanvas3D::_render_overlays()
|
||||
// ensure that the overlay fits the frustrum near z plane
|
||||
double gui_scale = camera.get_gui_scale();
|
||||
glsafe(::glScaled(gui_scale, gui_scale, 1.0));
|
||||
#endif // !ENABLE_GL_SHADERS_ATTRIBUTES
|
||||
|
||||
_check_and_update_toolbar_icon_scale();
|
||||
|
||||
@ -5810,7 +5812,9 @@ void GLCanvas3D::_render_overlays()
|
||||
}
|
||||
m_labels.render(sorted_instances);
|
||||
|
||||
#if !ENABLE_GL_SHADERS_ATTRIBUTES
|
||||
glsafe(::glPopMatrix());
|
||||
#endif // !ENABLE_GL_SHADERS_ATTRIBUTES
|
||||
}
|
||||
|
||||
void GLCanvas3D::_render_volumes_for_picking() const
|
||||
|
Loading…
Reference in New Issue
Block a user