mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:45:52 +08:00
Fix add depth test for rendering dragged text
This commit is contained in:
parent
d0b5417a13
commit
bd0ebeaac9
@ -275,7 +275,11 @@ void GLGizmoEmboss::on_render() {
|
|||||||
shader->start_using();
|
shader->start_using();
|
||||||
// dragging object must be selected so draw it with selected color
|
// dragging object must be selected so draw it with selected color
|
||||||
shader->set_uniform("uniform_color", GLVolume::SELECTED_COLOR);
|
shader->set_uniform("uniform_color", GLVolume::SELECTED_COLOR);
|
||||||
gl_volume.indexed_vertex_array.render();
|
|
||||||
|
glsafe(::glEnable(GL_DEPTH_TEST));
|
||||||
|
gl_volume.indexed_vertex_array.render();
|
||||||
|
glsafe(::glDisable(GL_DEPTH_TEST));
|
||||||
|
|
||||||
shader->stop_using();
|
shader->stop_using();
|
||||||
glsafe(::glPopMatrix());
|
glsafe(::glPopMatrix());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user