Henri Verbeet : wined3d: Match the d3d10 name for WINED3DDECLUSAGE_POSITION .

Alexandre Julliard julliard at winehq.org
Thu May 28 09:39:41 CDT 2009


Module: wine
Branch: master
Commit: fcf7844653368f70d175e1fd90f99742accc65eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fcf7844653368f70d175e1fd90f99742accc65eb

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu May 28 08:44:21 2009 +0200

wined3d: Match the d3d10 name for WINED3DDECLUSAGE_POSITION.

I.e., make sure that if a SM4 shader uses SV_POSITION it ends up as position
data.

---

 dlls/wined3d/baseshader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c
index c5f364c..dbbca56 100644
--- a/dlls/wined3d/baseshader.c
+++ b/dlls/wined3d/baseshader.c
@@ -345,7 +345,7 @@ static const char *shader_semantic_name_from_usage(WINED3DDECLUSAGE usage)
 {
     static const char *semantic_names[] =
     {
-        /* WINED3DDECLUSAGE_POSITION        */ "POSITION",
+        /* WINED3DDECLUSAGE_POSITION        */ "SV_POSITION",
         /* WINED3DDECLUSAGE_BLENDWEIGHT     */ "BLENDWEIGHT",
         /* WINED3DDECLUSAGE_BLENDINDICES    */ "BLENDINDICES",
         /* WINED3DDECLUSAGE_NORMAL          */ "NORMAL",




More information about the wine-cvs mailing list