wined3d: Set load_local_constsF in shader_set_function().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-10-03 12:32:16 +02:00 committed by Alexandre Julliard
parent 4c7d5642e5
commit 11fc530ac9
1 changed files with 2 additions and 2 deletions

View File

@ -3390,6 +3390,8 @@ static HRESULT shader_set_function(struct wined3d_shader *shader,
return WINED3DERR_INVALIDCALL;
}
shader->load_local_constsF = shader->lconst_inf_or_nan;
return WINED3D_OK;
}
@ -3787,8 +3789,6 @@ static HRESULT shader_init(struct wined3d_shader *shader, struct wined3d_device
}
}
shader->load_local_constsF = shader->lconst_inf_or_nan;
return hr;
}