summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2014-10-04 09:57:04 +0000
committerRene Engelhard <rene@debian.org>2014-10-04 12:34:08 +0200
commitafcb935c935077d9a23a3b140374f8fece7cdf54 (patch)
tree71cd61b226991504373f4b6046a44793bb43c24e /chart2
parentaa053bb16f34ce4d216848abd32845f7369e236b (diff)
fix chart2 build with system-glm again
Change-Id: Iaf40444cef56362e84c72c27328d5ad228c648ac
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/OpenGLRender.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index 204b2e8fe025..c16bb022ff38 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -352,7 +352,7 @@ void OpenGLRender::SetSize(int width, int height)
void OpenGLRender::SetSizePixel(int width, int height)
{
m_Projection = glm::ortho(0.f, float(m_iWidth), 0.f, float(m_iHeight), -4.f, 3.f);
- m_Projection = m_Projection * glm::scale((float)width / m_iWidth, -(float)height / m_iHeight, 1.0f);
+ m_Projection = m_Projection * glm::scale(glm::vec3((float)width / m_iWidth, -(float)height / m_iHeight, 1.0f));
m_View = glm::lookAt(glm::vec3(0,m_iHeight,1),
glm::vec3(0,m_iHeight,0),