wined3d: Set undefined vertex attributes to 0.0.

This commit is contained in:
Henri Verbeet 2012-06-12 17:03:49 +02:00 committed by Alexandre Julliard
parent 56fffd0659
commit 611b541f29
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}