mojoshader_assembler.c
changeset 499 baaa47f45109
parent 498 6a4b881704df
child 500 38ce929323c2
--- a/mojoshader_assembler.c	Wed Dec 10 05:33:10 2008 -0500
+++ b/mojoshader_assembler.c	Wed Dec 10 15:41:54 2008 -0500
@@ -1429,7 +1429,7 @@
     uint32 major = 0;
     if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
         return FAIL;
-    else if (strcmp(ctx->token, "_") != 0)
+    else if ((strcmp(ctx->token, "_") != 0) && (strcmp(ctx->token, ".") != 0))
         return fail(ctx, "Expected version string");
     else if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
         return FAIL;
@@ -1439,7 +1439,7 @@
     uint32 minor = 0;
     if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
         return FAIL;
-    else if (strcmp(ctx->token, "_") != 0)
+    else if ((strcmp(ctx->token, "_") != 0) && (strcmp(ctx->token, ".") != 0))
         return fail(ctx, "Expected version string");
     else if (nexttoken(ctx, 0, 0, 0, 0) == FAIL)
         return FAIL;