From b9b962c5b165df770fa25d578d44dc545c8b9746 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 29 May 2011 11:58:40 -0400 Subject: [PATCH] Recover slightly better from unrecognized instruction tokens. --- mojoshader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index 9dfcc5bb..21938e36 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -6742,7 +6742,7 @@ static int parse_instruction_token(Context *ctx) 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)