Skip to content

Commit

Permalink
oops bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Apr 23, 2024
1 parent 826e480 commit 88532a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Engine/Objects/3DSprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void Sprite3D::Draw()
t->Bind();

if (!depth)
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glBindVertexArray(VAO);

glDrawArrays(GL_TRIANGLES, 0, vertices.size());
Expand Down
1 change: 1 addition & 0 deletions src/Game/Objects/Base/DroppedItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DroppedItem::DroppedItem(glm::vec3 _pos, Texture* t, Data::InventoryItem i) : En
sprite = new Sprite3D(t, _pos);
sprite->width = 0.5f;
sprite->height = 0.5f;
sprite->depth = true;

isCreature = false;

Expand Down

0 comments on commit 88532a7

Please sign in to comment.