Recover slightly better from unrecognized instruction tokens.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 29 May 2011 11:58:40 -0400
changeset 1027 3fe5609f3620
parent 1026 7450fe55b177
child 1028 74e7ee46ac93
Recover slightly better from unrecognized instruction tokens.
mojoshader.c
--- a/mojoshader.c	Tue May 24 23:24:15 2011 -0400
+++ b/mojoshader.c	Sun May 29 11:58:40 2011 -0400
@@ -6742,7 +6742,7 @@
     if (instruction->opcode_string == NULL)
     {
         fail(ctx, "Unknown opcode.");
-        return 1;  // pray that you resync later.
+        return insttoks + 1;  // pray that you resync later.
     } // if
 
     if (coissue)