From b0a144c858f17fa4128f68a96eeadf7a27947108 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 17 Sep 2015 21:40:10 +0000 Subject: [PATCH] BBGE: use vector glm functions glm-0.9.5 removed scalar rotate() and translate() --- BBGE/RenderObject.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BBGE/RenderObject.cpp b/BBGE/RenderObject.cpp index f61256c..ae5faa2 100644 --- a/BBGE/RenderObject.cpp +++ b/BBGE/RenderObject.cpp @@ -316,10 +316,9 @@ static glm::mat4 matrixChain(const RenderObject *ro) ); if (ro->isfh()) - tranformMatrix *= glm::rotate(180.0f, 0.0f, 1.0f, 0.0f); - - tranformMatrix *= glm::translate(ro->internalOffset.x, ro->internalOffset.y, 0.0f); + tranformMatrix *= glm::rotate(180.0f, glm::vec3(0.0f, 1.0f, 0.0f)); + tranformMatrix *= glm::translate(glm::vec3(ro->internalOffset.x, ro->internalOffset.y, 0.0f)); return tranformMatrix; } #else