Marked some incorrected source modifiers for failure in GLSL profile. trunk
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Apr 2008 05:36:03 -0400
branchtrunk
changeset 185 ea719ad60d81
parent 184 5d196ad56b25
child 186 1658e8ce74ac
Marked some incorrected source modifiers for failure in GLSL profile.
mojoshader.c
--- a/mojoshader.c	Tue Apr 22 05:31:04 2008 -0400
+++ b/mojoshader.c	Tue Apr 22 05:36:03 2008 -0400
@@ -1747,6 +1747,7 @@
             premod_str = "-";
             // fall through.
         case SRCMOD_BIAS:
+            fail(ctx, "unsupported"); return ""; // !!! FIXME
             postmod_str = "_bias";
             break;
 
@@ -1754,29 +1755,35 @@
             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;