Fix add depth test for rendering dragged text
This commit is contained in:
parent
d0b5417a13
commit
bd0ebeaac9
1 changed files with 5 additions and 1 deletions
|
@ -275,7 +275,11 @@ void GLGizmoEmboss::on_render() {
|
|||
shader->start_using();
|
||||
// dragging object must be selected so draw it with 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();
|
||||
glsafe(::glPopMatrix());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue