mojoshader_compiler.c
changeset 991 8999b4b9eaa6
parent 990 a6f58e240fe6
child 993 426ab31f27d1
--- a/mojoshader_compiler.c	Thu Feb 10 00:05:36 2011 -0800
+++ b/mojoshader_compiler.c	Thu Feb 10 18:37:29 2011 -0500
@@ -3614,8 +3614,7 @@
 
 static void add_intrinsic_SAME1_Vf_SAME1_f(Context *ctx, const char *fn)
 {
-    const MOJOSHADER_astDataType *f = &ctx->dt_float;
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic3(ctx, fn, dt, dt, dt, f));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic3(ctx, fn, dt, dt, dt, dt->vector.base));
 } // add_intrinsic_SAME1_Vf_SAME1_f
 
 static void add_intrinsic_VOID_ANYf(Context *ctx, const char *fn)
@@ -3638,19 +3637,18 @@
 
 static void add_intrinsic_f_Vf(Context *ctx, const char *fn)
 {
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic1(ctx, fn, &ctx->dt_float, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic1(ctx, fn, dt->vector.base, dt));
 } // add_intrinsic_f_Vf
 
 static void add_intrinsic_fi_Vfi_SAME1(Context *ctx, const char *fn)
 {
-    ADD_INTRINSIC_VECTOR_INT(add_intrinsic2(ctx, fn, &ctx->dt_int, dt, dt));
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, &ctx->dt_float, dt, dt));
+    ADD_INTRINSIC_VECTOR_INT(add_intrinsic2(ctx, fn, dt->vector.base, dt, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->vector.base, dt, dt));
 } // add_intrinsic_fi_Vfi_SAME1
 
 static void add_intrinsic_f_Vf_SAME1(Context *ctx, const char *fn)
 {
-    const MOJOSHADER_astDataType *f = &ctx->dt_float;
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, f, dt, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->vector.base, dt, dt));
 } // add_intrinsic_f_Vf_SAME1
 
 static void add_intrinsic_3f_3f_3f(Context *ctx, const char *fn)