Removed some #if 0'd code. trunk
authorRyan C. Gordon <icculus@icculus.org>
Mon, 28 Apr 2008 02:28:34 -0400
branchtrunk
changeset 235 a9ec326856d5
parent 234 c05582e582ad
child 236 8e2fc535b210
Removed some #if 0'd code. Either the spec is wrong, or I'm misreading it...MOD_SATURATE is valid in both pixel and vertex shaders.
mojoshader.c
--- a/mojoshader.c	Mon Apr 28 02:27:29 2008 -0400
+++ b/mojoshader.c	Mon Apr 28 02:28:34 2008 -0400
@@ -3111,16 +3111,6 @@
             return fail(ctx, "Result shift scale isn't 1 to 3, or 13 to 15.");
     } // if
 
-    // !!! FIXME: these are definitely showing up in valid pixel shaders.
-    // !!! FIXME:  go re-read the spec on this one.
-    #if 0
-    if (info->result_mod & MOD_SATURATE)  // Saturate (vertex shaders only)
-    {
-        if (!shader_is_vertex(ctx))
-            return fail(ctx, "Saturate result mod in non-vertex shader");
-    } // if
-    #endif
-
     if (info->result_mod & MOD_PP)  // Partial precision (pixel shaders only)
     {
         if (!shader_is_pixel(ctx))