Skip to content

Commit

Permalink
select box disable depth test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Oct 8, 2023
1 parent 66f3d79 commit ca5e140
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zenovis/src/bate/HudGraphicSelectBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ struct GraphicSelectBox final : IGraphicDraw {

prog->set_uniform("mTrans", mTrans);

glDisable(GL_DEPTH_TEST);
CHECK_GL(glDrawArrays(GL_TRIANGLES, 0, vertex_count));
glEnable(GL_DEPTH_TEST);

vbo->disable_attribute(0);
vbo->unbind();
Expand Down

0 comments on commit ca5e140

Please sign in to comment.