diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-06 13:09:30 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-06 13:10:35 +0200 |
commit | 1fd0d0f3fc8b71675f961a08ad4cdbc8e186a6bc (patch) | |
tree | df3e11d50b0939528fa51f349eb2a281a77a5516 /chart2 | |
parent | c748a17cac8be9e844ff920cf5c17b229847c316 (diff) |
fix matrix generation
Change-Id: Id31caa16dfe0d0f23cf07589053233e9b311d02f
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index caf13a7fc769..b29d1935662f 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -53,8 +53,8 @@ void GL3DBarChart::create3DShapes() float nYPos = nSeriesIndex * (nBarSizeY + nBarDistanceY); glm::mat4 aBarPosition; - glm::scale(aBarPosition, nBarSizeX, nBarSizeY, nVal); - glm::translate(aBarPosition, nXPos, nYPos, nVal/2); + aBarPosition = glm::scale(aBarPosition, nBarSizeX, nBarSizeY, nVal); + aBarPosition = glm::translate(aBarPosition, nXPos, nYPos, nVal/2); maShapes.push_back(new opengl3D::Bar(mpRenderer.get(), aBarPosition, nId++)); } |