updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / nvidia-texture-tools / issue139.patch
bloba2e3f58192aa40b2fcede350061b9609114fbd9e
1 Index: src/src/nvmath/Vector.h
2 ===================================================================
3 --- src/src/nvmath/Vector.h (revision 8311)
4 +++ src/src/nvmath/Vector.h (working copy)
5 @@ -68,7 +68,7 @@
6 scalar y() const;
7 scalar z() const;
9 - const Vector2 & xy() const;
10 + Vector2 xy() const;
12 scalar component(uint idx) const;
14 @@ -111,8 +111,8 @@
15 scalar z() const;
16 scalar w() const;
18 - const Vector2 & xy() const;
19 - const Vector3 & xyz() const;
20 + Vector2 xy() const;
21 + Vector3 xyz() const;
23 scalar component(uint idx) const;
25 @@ -231,9 +231,9 @@
26 inline scalar Vector3::y() const { return m_y; }
27 inline scalar Vector3::z() const { return m_z; }
29 -inline const Vector2 & Vector3::xy() const
30 +inline Vector2 Vector3::xy() const
32 - return *(Vector2 *)this;
33 + return Vector2(m_x, m_y);
36 inline scalar Vector3::component(uint idx) const
37 @@ -332,14 +332,14 @@
38 inline scalar Vector4::z() const { return m_z; }
39 inline scalar Vector4::w() const { return m_w; }
41 -inline const Vector2 & Vector4::xy() const
42 +inline Vector2 Vector4::xy() const
44 - return *(Vector2 *)this;
45 + return Vector2(m_x, m_y);
48 -inline const Vector3 & Vector4::xyz() const
49 +inline Vector3 Vector4::xyz() const
51 - return *(Vector3 *)this;
52 + return Vector3(m_x, m_y, m_z);
55 inline scalar Vector4::component(uint idx) const