--- a/mojoshader_assembler.c Tue Feb 03 17:06:09 2009 -0500
+++ b/mojoshader_assembler.c Tue Feb 03 17:16:32 2009 -0500
@@ -1032,6 +1032,8 @@
if (saw_xyzw && saw_rgba)
invalid_swizzle = 1;
+ else if (saw_rgba && !shader_is_pixel(ctx))
+ invalid_swizzle = 1;
} // else
if (invalid_swizzle)