From 0413328dcb74dc92bb2a12954939d49a2c810779 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 11 Jan 2017 09:15:57 -0300 Subject: [PATCH] fix code generation so it generates Transform2D instead of Matrix32 --- methods.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/methods.py b/methods.py index a9fb0afd7c4..7177dcb804c 100644 --- a/methods.py +++ b/methods.py @@ -279,9 +279,9 @@ def build_glsl_header(filename): """) - fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Matrix32& p_transform) { _FU + fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Transform2D& p_transform) { _FU - const Matrix32 &tr = p_transform; + const Transform2D &tr = p_transform; GLfloat matrix[16]={ /* build a 16x16 matrix */ tr.elements[0][0], @@ -933,9 +933,9 @@ def build_legacygl_header(filename, include, class_suffix, output_attribs): """) - fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Matrix32& p_transform) { _FU + fd.write("""\t_FORCE_INLINE_ void set_uniform(Uniforms p_uniform, const Transform2D& p_transform) { _FU - const Matrix32 &tr = p_transform; + const Transform2D &tr = p_transform; GLfloat matrix[16]={ /* build a 16x16 matrix */ tr.elements[0][0],