Error if a non-2D/affine matrix is used with auto-batched draws, since they perform CPU-side matrix transforms on 2-component vectors.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-04-23 00:12:57 -03:00
parent 7161d600b7
commit 70b32c47ce
13 changed files with 79 additions and 26 deletions
+7
View File
@@ -195,6 +195,13 @@ public:
template <typename Vdst, typename Vsrc>
void transform(Vdst *dst, const Vsrc *src, int size) const;
/**
* Gets whether this matrix is an affine 2D transform (if the only non-
* identity elements are the upper-left 4x4 and 2 translation values in the
* 4th column).
**/
bool isAffine2DTransform() const;
/**
* Computes and returns the inverse of the matrix.
**/