summaryrefslogtreecommitdiffstats
path: root/src/RendererEntity.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:43:26 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:43:26 +0200
commit228920cde3d3860280cdedbbe69c33767791e4a7 (patch)
tree1a31fc4e2aa9a2e78de775fd283dbcadf51b6590 /src/RendererEntity.cpp
parentFixed linux compilation errors (diff)
downloadAltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.gz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.bz2
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.lz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.xz
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.zst
AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.zip
Diffstat (limited to 'src/RendererEntity.cpp')
-rw-r--r--src/RendererEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RendererEntity.cpp b/src/RendererEntity.cpp
index 951b1ad..a987139 100644
--- a/src/RendererEntity.cpp
+++ b/src/RendererEntity.cpp
@@ -145,7 +145,7 @@ RendererEntity::~RendererEntity() {
void RendererEntity::Render(RenderState & renderState) {
renderState.SetActiveVao(Vao);
- glm::mat4 model;
+ glm::mat4 model = glm::mat4(1.0);
Entity& entity = world->GetEntity(entityId);
model = glm::translate(model, entity.pos.glm());
model = glm::translate(model, glm::vec3(0, entity.height / 2.0, 0));