[1/9] wined3d: Don't use WINED3DSHADERDECLUSAGE_PSIZE / WINED3DSHADERDECLUSAGE_FOG

H. Verbeet hverbeet at gmail.com
Tue Feb 13 16:12:05 CST 2007


WINED3DSHADERDECLUSAGE is not equivalent to D3DDECLUSAGE. The patches
in this set should not conflict with Stefan's patches sent earlier,
but just to be safe they're generated to apply on top of those.

Changelog:
  - Don't use WINED3DSHADERDECLUSAGE_PSIZE / WINED3DSHADERDECLUSAGE_FOG
-------------- next part --------------
---

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

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index d95391e..87894d9 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -1962,11 +1962,11 @@ void vshader_glsl_output_unpack(
                    usage_idx, reg_mask, i, reg_mask);
                break;
 
-           case WINED3DSHADERDECLUSAGE_PSIZE:
+           case D3DDECLUSAGE_PSIZE:
                shader_addline(buffer, "gl_PointSize = OUT%u.x;\n", i);
                break;
 
-           case WINED3DSHADERDECLUSAGE_FOG:
+           case D3DDECLUSAGE_FOG:
                shader_addline(buffer, "gl_FogFragCoord%s = OUT%u%s;\n", reg_mask, i, reg_mask);
                break;
 


More information about the wine-patches mailing list