Skip to content

Commit

Permalink
fix depth weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Apr 23, 2024
1 parent 3543b69 commit 826e480
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Engine/Objects/3DSprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ void Sprite3D::Draw()
glDrawArrays(GL_TRIANGLES, 0, vertices.size());

glBindVertexArray(0);
if (!depth)
glEnable(GL_DEPTH_TEST);
glEnable(GL_DEPTH_TEST);

t->Unbind();

Expand Down

0 comments on commit 826e480

Please sign in to comment.