MATH: Change Vector argument in [un]project to const reference

This commit is contained in:
Orgad Shaneh 2021-11-02 10:02:47 +02:00 committed by Paweł Kołodziejski
parent 901a730825
commit 5fa8082dcb
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@
namespace Math {
// function based on gluUnProject from Mesa 5.0 glu GPLv2+ licensed sources
bool gluMathUnProject(Vector3d win, const Matrix4 &mvpMatrix, const Common::Rect &viewport, Vector3d &obj) {
bool gluMathUnProject(const Vector3d &win, const Matrix4 &mvpMatrix, const Common::Rect &viewport, Vector3d &obj) {
Matrix4 A;
Vector4d in, out;