Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Emit vs_1_1 properly (thanks, Aras!).
  • Loading branch information
icculus committed Dec 30, 2009
1 parent b5d9d43 commit 05f3578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mojoshader.c
Expand Up @@ -1071,8 +1071,8 @@ static void emit_D3D_start(Context *ctx, const char *profilestr)

if (minor == 0xFF)
strcpy(minor_str, "sw");
else if (minor == 0x1) // apparently this is "vs_2_x". Weird.
strcpy(minor_str, "x");
else if ((major > 1) && (minor == 1))
strcpy(minor_str, "x"); // for >= SM2, apparently this is "x". Weird.
else
snprintf(minor_str, sizeof (minor_str), "%u", (uint) minor);

Expand Down

0 comments on commit 05f3578

Please sign in to comment.