From bc1b8b009578878c0ee1120acd04fd6735a3b103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 5 Feb 2017 01:19:51 +0100 Subject: [PATCH] SceneGraph: fix deprecation warning message. --- src/Magnum/SceneGraph/Camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/SceneGraph/Camera.h b/src/Magnum/SceneGraph/Camera.h index 13edca414..857f7ce40 100644 --- a/src/Magnum/SceneGraph/Camera.h +++ b/src/Magnum/SceneGraph/Camera.h @@ -180,7 +180,7 @@ template class Camera: public AbstractFeature::type> CORRADE_DEPRECATED("use setProjectionMatrix() with Matrix4::orthographicProjection() instead") BasicCamera3D& setPerspective(const Math::Vector2& size, T near, T far) { + template::type> CORRADE_DEPRECATED("use setProjectionMatrix() with Matrix4::perspectiveProjection() instead") BasicCamera3D& setPerspective(const Math::Vector2& size, T near, T far) { return setProjectionMatrix(Math::Matrix4::perspectiveProjection(size, near, far)); } @@ -189,7 +189,7 @@ template class Camera: public AbstractFeature::type> CORRADE_DEPRECATED("use setProjectionMatrix() with Matrix4::orthographicProjection() instead") BasicCamera3D& setPerspective(Math::Rad fov, T aspectRatio, T near, T far) { + template::type> CORRADE_DEPRECATED("use setProjectionMatrix() with Matrix4::perspectiveProjection() instead") BasicCamera3D& setPerspective(Math::Rad fov, T aspectRatio, T near, T far) { return setProjectionMatrix(Math::Matrix4::perspectiveProjection(fov, aspectRatio, near, far)); } #endif