wined3d: Only initialize unused components of varyings that are read.

This commit is contained in:
Henri Verbeet 2009-06-17 10:19:51 +02:00 committed by Alexandre Julliard
parent fccb3d82fd
commit 2c009e4d87
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {