From 05f35789fdc00c2d307359c9b82ce14958b39f87 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 30 Dec 2009 03:32:54 -0500 Subject: [PATCH] Emit vs_1_1 properly (thanks, Aras!). --- mojoshader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index 98591539..753bc497 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -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);