mojoshader.c
changeset 1291 db27fb09421a
parent 1287 c5a53296dbd5
child 1299 02d36217591b
--- a/mojoshader.c	Mon Jul 20 16:14:43 2020 -0400
+++ b/mojoshader.c	Mon Jul 20 18:53:54 2020 -0400
@@ -1504,6 +1504,12 @@
         fail(ctx, "RCP without replicate swizzle");
 } // state_RCP
 
+static void state_RSQ(Context *ctx)
+{
+    if (!replicate_swizzle(ctx->source_args[0].swizzle))
+        fail(ctx, "RSQ without replicate swizzle");
+} // state_RSQ
+
 static void state_LOOP(Context *ctx)
 {
     if (ctx->source_args[0].regtype != REG_TYPE_LOOP)