From 0ad92333bfecdea2043401ce06bd6bd9e5b3fddb Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Fri, 26 Jun 2015 19:29:06 -0400 Subject: [PATCH] ecere/gfx/3D/Matrix: Fixed non Android GLES issues due to imcomplete matrix multiplication --- ecere/src/gfx/3D/Matrix.ec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecere/src/gfx/3D/Matrix.ec b/ecere/src/gfx/3D/Matrix.ec index de0c050..ab1282f 100644 --- a/ecere/src/gfx/3D/Matrix.ec +++ b/ecere/src/gfx/3D/Matrix.ec @@ -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]; -- 1.8.3.1