From 14219b0c3b39d696028718a91bdec9c5ad6239ed Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 8 Apr 2015 04:56:33 +0200 Subject: [PATCH] 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 6428ec7284f..0bedf244634 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)) ||