Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2015-12-14 05:19:45 +0300
committerMike Erwin <significant.bit@gmail.com>2015-12-15 06:28:12 +0300
commit87fac9a81623d4856e5325718501423abfbcbbe5 (patch)
treeee27d9e847d5038e31c318a9618a161c0966f4ae /source/gameengine/Ketsji
parent17a16b57df2d6e45c2f9e0d937c7baf8a386764b (diff)
use float (not double) for font matrix
Following up on recent double --> float commits in the game engine.
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r--source/gameengine/Ketsji/KX_FontObject.cpp6
1 files changed, 1 insertions, 5 deletions
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();