Henri Verbeet : wined3d: Only initialize unused components of varyings that are read.
Alexandre Julliard
julliard at winehq.org
Wed Jun 17 10:43:24 CDT 2009
Module: wine
Branch: master
Commit: 2c009e4d874722c1a7b50b1c0ecf7a7eaa3e9002
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c009e4d874722c1a7b50b1c0ecf7a7eaa3e9002
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Jun 17 10:19:51 2009 +0200
wined3d: Only initialize unused components of varyings that are read.
---
dlls/wined3d/glsl_shader.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 846044f..e065296 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -3423,7 +3423,8 @@ static void handle_ps3_input(SHADER_BUFFER *buffer, const WineD3D_GL_Info *gl_in
* input varyings are assigned above, if the optimizer works properly.
*/
for(i = 0; i < in_count + 2; i++) {
- if(set[i] != WINED3DSP_WRITEMASK_ALL) {
+ if (set[i] && set[i] != WINED3DSP_WRITEMASK_ALL)
+ {
unsigned int size = 0;
memset(reg_mask, 0, sizeof(reg_mask));
if(!(set[i] & WINED3DSP_WRITEMASK_0)) {
More information about the wine-cvs
mailing list