From 87fac9a81623d4856e5325718501423abfbcbbe5 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Sun, 13 Dec 2015 21:19:45 -0500 Subject: use float (not double) for font matrix Following up on recent double --> float commits in the game engine. --- source/gameengine/Ketsji/KX_FontObject.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/gameengine/Ketsji') diff --git a/source/gameengine/Ketsji/KX_FontObject.cpp b/source/gameengine/Ketsji/KX_FontObject.cpp index 13a5ec6c411..32ac8c594d2 100644 --- a/source/gameengine/Ketsji/KX_FontObject.cpp +++ b/source/gameengine/Ketsji/KX_FontObject.cpp @@ -193,11 +193,7 @@ void KX_FontObject::DrawFontText() const float aspect = m_fsize / size; /* Get a working copy of the OpenGLMatrix to use */ - double mat[16]; - float *origmat = GetOpenGLMatrix(); - for (unsigned short i = 0; i < 16; ++i) { - mat[i] = (double)origmat[i]; - } + float *mat = GetOpenGLMatrix(); /* Account for offset */ MT_Vector3 offset = this->NodeGetWorldOrientation() * m_offset * this->NodeGetWorldScaling(); -- cgit v1.2.3