Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 28, 2008
1 parent 06df89a commit ae5668b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mojoshader.c
Expand Up @@ -3111,16 +3111,6 @@ static int parse_destination_token(Context *ctx, DestArgInfo *info)
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))
Expand Down

0 comments on commit ae5668b

Please sign in to comment.