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