]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
vector components are floats, not vectors
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 18 Dec 2012 11:58:15 +0000 (12:58 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 18 Dec 2012 11:58:15 +0000 (12:58 +0100)
ir.c

diff --git a/ir.c b/ir.c
index f5ad97e3cd2b7aea35da25f7743e5f0e082066c2..458d2cfe4723119f3bef90e9466df41f88835658 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -3158,6 +3158,8 @@ static void gen_vector_defs(prog_section_def def, const char *name)
     if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
         return;
 
+    def.type = TYPE_FLOAT;
+
     len = strlen(name);
 
     component = (char*)mem_a(len+3);
@@ -3184,6 +3186,8 @@ static void gen_vector_fields(prog_section_field fld, const char *name)
     if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
         return;
 
+    def.type = TYPE_FLOAT;
+
     len = strlen(name);
 
     component = (char*)mem_a(len+3);