wined3d: Only initialize unused components of varyings that are read.
This commit is contained in:
parent
fccb3d82fd
commit
2c009e4d87
|
@ -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.
|
* input varyings are assigned above, if the optimizer works properly.
|
||||||
*/
|
*/
|
||||||
for(i = 0; i < in_count + 2; i++) {
|
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;
|
unsigned int size = 0;
|
||||||
memset(reg_mask, 0, sizeof(reg_mask));
|
memset(reg_mask, 0, sizeof(reg_mask));
|
||||||
if(!(set[i] & WINED3DSP_WRITEMASK_0)) {
|
if(!(set[i] & WINED3DSP_WRITEMASK_0)) {
|
||||||
|
|
Loading…
Reference in New Issue