From 5c80fb0ad9181ad3af43f6d7bca92f7e780f72f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 21 Aug 2012 11:28:02 +0200 Subject: [PATCH] GCC 4.5 compatibility: cannot use initializer list here. --- src/SceneGraph/Camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SceneGraph/Camera.cpp b/src/SceneGraph/Camera.cpp index f6896667b..9afcd4a55 100644 --- a/src/SceneGraph/Camera.cpp +++ b/src/SceneGraph/Camera.cpp @@ -49,7 +49,7 @@ template Matrix4 aspectRatioFix(AspectRatioPolicy, const Vector2&, cons template Camera::Camera(ObjectType* parent): ObjectType(parent), _aspectRatioPolicy(AspectRatioPolicy::NotPreserved) {} template void Camera::setViewport(const Math::Vector2& size) { - Framebuffer::setViewport({0, 0}, size); + Framebuffer::setViewport(Math::Vector2{0, 0}, size); _viewport = size; fixAspectRatio();