Navigation Menu

Skip to content

Commit

Permalink
Removed separation of nv2 and arb1 profiles. If you want arb1, you ge…
Browse files Browse the repository at this point in the history
…t nv2.

--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 19, 2008
1 parent 04530d0 commit 97329b0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions mojoshader.c
Expand Up @@ -48,16 +48,6 @@
#define SUPPORT_PROFILE_ARB1 1
#endif

#ifndef SUPPORT_PROFILE_NV2
#define SUPPORT_PROFILE_NV2 1
#endif


#if SUPPORT_PROFILE_NV2 && !SUPPORT_PROFILE_ARB1
#error nv2 profile requires arb1 profile.
#endif



// Get basic wankery out of the way here...

Expand Down Expand Up @@ -3711,14 +3701,12 @@ static void emit_ARB1_start(Context *ctx, const char *profilestr)
if (strcmp(profilestr, MOJOSHADER_PROFILE_ARB1) == 0)
output_line(ctx, "!!ARB%s1.0", shader_str);

#if SUPPORT_PROFILE_NV2
else if (strcmp(profilestr, MOJOSHADER_PROFILE_NV2) == 0)
{
ctx->support_nv2 = 1;
output_line(ctx, "!!ARB%s1.0", shader_str);
output_line(ctx, "OPTION NV_vertex_program2;");
} // else if
#endif

else
{
Expand Down Expand Up @@ -4645,9 +4633,7 @@ static const Profile profiles[] =
// This is for profiles that extend other profiles...
static const struct { const char *from; const char *to; } profileMap[] =
{
#if SUPPORT_PROFILE_NV2
{ MOJOSHADER_PROFILE_NV2, MOJOSHADER_PROFILE_ARB1 },
#endif
};


Expand Down

0 comments on commit 97329b0

Please sign in to comment.