Henri Verbeet : wined3d: Set undefined vertex attributes to 0.0.

Alexandre Julliard julliard at winehq.org
Tue Jun 12 13:36:33 CDT 2012


Module: wine
Branch: master
Commit: 611b541f292761e459eac4eb1cf88d765b939ff8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=611b541f292761e459eac4eb1cf88d765b939ff8

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jun 12 17:03:49 2012 +0200

wined3d: Set undefined vertex attributes to 0.0.

---

 dlls/wined3d/state.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index f2da77c..35e1736 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -4082,7 +4082,10 @@ static void load_numbered_arrays(struct wined3d_context *context,
 
         if (!(stream_info->use_map & (1 << i)))
         {
-            if (context->numbered_array_mask & (1 << i)) unload_numbered_array(context, i);
+            if (context->numbered_array_mask & (1 << i))
+                unload_numbered_array(context, i);
+            if (state->vertex_shader->reg_maps.input_registers & (1 << i))
+                GL_EXTCALL(glVertexAttrib4fARB(i, 0.0f, 0.0f, 0.0f, 0.0f));
             continue;
         }
 




More information about the wine-cvs mailing list