Commit 83965884 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Properly check if an attribute is used in find_conversion_shift().

parent bda89180
......@@ -258,7 +258,7 @@ static UINT *find_conversion_shift(struct wined3d_buffer *This,
{
WINED3DFORMAT format;
if (strided->elements[i].buffer_object != This->buffer_object) continue;
if (!(strided->use_map & (1 << i)) || strided->elements[i].buffer_object != This->buffer_object) continue;
format = strided->elements[i].format_desc->format;
if (format == WINED3DFMT_R16G16_FLOAT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment