mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fixed rendering of toolbars' textures with prespective camera
This commit is contained in:
parent
2b9d285a16
commit
8febd88e80
2 changed files with 3 additions and 3 deletions
|
@ -3995,7 +3995,7 @@ void GLCanvas3D::_render_overlays() const
|
|||
glsafe(::glPushMatrix());
|
||||
glsafe(::glLoadIdentity());
|
||||
// ensure that the textures are renderered inside the frustrum
|
||||
glsafe(::glTranslated(0.0, 0.0, -(m_camera.get_near_z() + 0.5)));
|
||||
glsafe(::glTranslated(0.0, 0.0, -(m_camera.get_near_z() + 0.005)));
|
||||
// ensure that the overlay fits the frustrum near z plane
|
||||
double gui_scale = m_camera.get_gui_scale();
|
||||
glsafe(::glScaled(gui_scale, gui_scale, 1.0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue