From 184e407e5d138713eb45e065f20d03a8f1b119c9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 31 May 2013 14:04:20 +0200 Subject: [PATCH] Work around awkward GLSL compiler bug on iOS. --- tools/cg2glsl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cg2glsl.py b/tools/cg2glsl.py index 847b8d0fce..12732afdf5 100755 --- a/tools/cg2glsl.py +++ b/tools/cg2glsl.py @@ -327,8 +327,8 @@ def hack_source_vertex(source): mat4 transpose_(mat4 matrix) { mat4 ret; - for (int i = 0; i < 4; i++) - for (int j = 0; j < 4; j++) + for (int i = 0; i != 4; i++) + for (int j = 0; j != 4; j++) ret[i][j] = matrix[j][i]; return ret;