Module: wine Branch: master Commit: 14219b0c3b39d696028718a91bdec9c5ad6239ed URL: http://source.winehq.org/git/wine.git/?a=commit;h=14219b0c3b39d696028718a91b...
Author: Sebastian Lackner sebastian@fds-team.de Date: Wed Apr 8 04:56:33 2015 +0200
wined3d: Fix a typo in vertexshader_init.
Should fix the graphical corruptions recently introduced by 002713de6d6afed8f1483316fd32fbfc0956b338.
---
dlls/wined3d/shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c index 6428ec7..0bedf24 100644 --- a/dlls/wined3d/shader.c +++ b/dlls/wined3d/shader.c @@ -2312,7 +2312,7 @@ static HRESULT vertexshader_init(struct wined3d_shader *shader, struct wined3d_d
shader->u.vs.attributes[input->register_idx].usage = shader_usage_from_semantic_name(input->semantic_name); - shader->u.vs.attributes[i].usage_idx = input->semantic_idx; + shader->u.vs.attributes[input->register_idx].usage_idx = input->semantic_idx; }
shader->load_local_constsF = (reg_maps->usesrelconstF && !list_empty(&shader->constantsF)) ||