From 411f9190f3c63b2d2780b13fc6534854693b8a85 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 22 Apr 2008 05:36:03 -0400 Subject: [PATCH] Marked some incorrected source modifiers for failure in GLSL profile. --HG-- branch : trunk --- mojoshader.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mojoshader.c b/mojoshader.c index 54885578..667c37f5 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -1747,6 +1747,7 @@ static char *make_GLSL_srcarg_string(Context *ctx, const int idx, premod_str = "-"; // fall through. case SRCMOD_BIAS: + fail(ctx, "unsupported"); return ""; // !!! FIXME postmod_str = "_bias"; break; @@ -1754,29 +1755,35 @@ static char *make_GLSL_srcarg_string(Context *ctx, const int idx, premod_str = "-"; // fall through. case SRCMOD_SIGN: + fail(ctx, "unsupported"); return ""; // !!! FIXME postmod_str = "_bx2"; break; case SRCMOD_COMPLEMENT: + fail(ctx, "unsupported"); return ""; // !!! FIXME (need to handle vecsize) premod_str = "(1.0 - ("; postmod_str = "))"; break; case SRCMOD_X2NEGATE: + fail(ctx, "unsupported"); return ""; // !!! FIXME (need to handle vecsize) premod_str = "-("; postmod_str = " * 2.0)"; break; case SRCMOD_X2: + fail(ctx, "unsupported"); return ""; // !!! FIXME (need to handle vecsize) premod_str = "("; postmod_str = " * 2.0)"; break; case SRCMOD_DZ: + fail(ctx, "unsupported"); return ""; // !!! FIXME postmod_str = "_dz"; break; case SRCMOD_DW: + fail(ctx, "unsupported"); return ""; // !!! FIXME postmod_str = "_dw"; break;