Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Marked some incorrected source modifiers for failure in GLSL profile.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 22, 2008
1 parent 29636ac commit 411f919
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mojoshader.c
Expand Up @@ -1747,36 +1747,43 @@ 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;

case SRCMOD_SIGNNEGATE:
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;

Expand Down

0 comments on commit 411f919

Please sign in to comment.