[47/49] wined3d: Simplify shader_glsl_get_write_mask()
H. Verbeet
hverbeet at gmail.com
Mon Jan 15 12:36:52 CST 2007
Now that write masks are handled correctly we don't need this check anymore.
Changelog:
- Simplify shader_glsl_get_write_mask
-------------- next part --------------
---
dlls/wined3d/glsl_shader.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index f0fe216..b640f72 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -705,13 +705,11 @@ static DWORD shader_glsl_get_write_mask(const DWORD param, char *write_mask) {
if ((shader_get_regtype(param) == WINED3DSPR_RASTOUT) && ((param & WINED3DSP_REGNUM_MASK) != 0)) {
mask = WINED3DSP_WRITEMASK_0;
} else {
- if (mask != WINED3DSP_WRITEMASK_ALL) {
- *ptr++ = '.';
- if (param & WINED3DSP_WRITEMASK_0) *ptr++ = 'x';
- if (param & WINED3DSP_WRITEMASK_1) *ptr++ = 'y';
- if (param & WINED3DSP_WRITEMASK_2) *ptr++ = 'z';
- if (param & WINED3DSP_WRITEMASK_3) *ptr++ = 'w';
- }
+ *ptr++ = '.';
+ if (param & WINED3DSP_WRITEMASK_0) *ptr++ = 'x';
+ if (param & WINED3DSP_WRITEMASK_1) *ptr++ = 'y';
+ if (param & WINED3DSP_WRITEMASK_2) *ptr++ = 'z';
+ if (param & WINED3DSP_WRITEMASK_3) *ptr++ = 'w';
}
*ptr = '\0';
More information about the wine-patches
mailing list