ecere/gfx/3D/Matrix: Fixed non Android GLES issues due to imcomplete matrix multiplic...
authorJerome St-Louis <jerome@ecere.com>
Fri, 26 Jun 2015 23:29:06 +0000 (19:29 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:22:59 +0000 (20:22 -0400)
ecere/src/gfx/3D/Matrix.ec

index de0c050..ab1282f 100644 (file)
@@ -45,7 +45,7 @@ public union Matrix
 
    void Multiply(Matrix a, Matrix b)
    {
-#ifdef __ANDROID__
+#ifdef _GLES
       // We need a full matrix multiplication for the Projection matrix
       m[0][0]=a.m[0][0]*b.m[0][0] + a.m[0][1]*b.m[1][0] + a.m[0][2]*b.m[2][0] + a.m[0][3]*b.m[3][0];
       m[0][1]=a.m[0][0]*b.m[0][1] + a.m[0][1]*b.m[1][1] + a.m[0][2]*b.m[2][1] + a.m[0][3]*b.m[3][1];