From 252b1dc50ceb74f2174d6a27be653cbb660d40b0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 23 Feb 2009 20:26:12 -0500 Subject: [PATCH] No reason you can't specify the same option twice. --- utils/mojoshader-compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/mojoshader-compiler.c b/utils/mojoshader-compiler.c index bc091d2f..a904236c 100644 --- a/utils/mojoshader-compiler.c +++ b/utils/mojoshader-compiler.c @@ -220,14 +220,14 @@ int main(int argc, char **argv) if (strcmp(arg, "-P") == 0) { - if (action != ACTION_UNKNOWN) + if ((action != ACTION_UNKNOWN) && (action != ACTION_PREPROCESS)) fail("Multiple actions specified"); action = ACTION_PREPROCESS; } // if else if (strcmp(arg, "-A") == 0) { - if (action != ACTION_UNKNOWN) + if ((action != ACTION_UNKNOWN) && (action != ACTION_ASSEMBLE)) fail("Multiple actions specified"); action = ACTION_ASSEMBLE; } // else if