From 228920cde3d3860280cdedbbe69c33767791e4a7 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 21 Aug 2018 20:43:26 +0500 Subject: Fixed rendering errors --- src/RendererEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/RendererEntity.cpp') 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)); -- cgit v1.2.3