Fixed incorrect union accesses.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Feb 2011 02:51:06 -0500
changeset 999 1ac98e90b53e
parent 998 8f82dca9a374
child 1000 0f4a8ec6bd9b
Fixed incorrect union accesses.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Tue Feb 22 02:50:48 2011 -0500
+++ b/mojoshader_compiler.c	Tue Feb 22 02:51:06 2011 -0500
@@ -3882,7 +3882,7 @@
 
 static void add_intrinsic_SAME1_Vf_SAME1_f(Context *ctx, const char *fn)
 {
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic3(ctx, fn, dt, dt, dt, dt->vector.base));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic3(ctx, fn, dt, dt, dt, dt->user.details->vector.base));
 } // add_intrinsic_SAME1_Vf_SAME1_f
 
 static void add_intrinsic_VOID_ANYf(Context *ctx, const char *fn)
@@ -3905,18 +3905,18 @@
 
 static void add_intrinsic_f_Vf(Context *ctx, const char *fn)
 {
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic1(ctx, fn, dt->vector.base, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic1(ctx, fn, dt->user.details->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, dt->vector.base, dt, dt));
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->vector.base, dt, dt));
+    ADD_INTRINSIC_VECTOR_INT(add_intrinsic2(ctx, fn, dt->user.details->vector.base, dt, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->user.details->vector.base, dt, dt));
 } // add_intrinsic_fi_Vfi_SAME1
 
 static void add_intrinsic_f_Vf_SAME1(Context *ctx, const char *fn)
 {
-    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->vector.base, dt, dt));
+    ADD_INTRINSIC_VECTOR_FLOAT(add_intrinsic2(ctx, fn, dt->user.details->vector.base, dt, dt));
 } // add_intrinsic_f_Vf_SAME1
 
 static void add_intrinsic_3f_3f_3f(Context *ctx, const char *fn)