Commit 877e2526 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only update the swizzle and use map for streams that are actually used…

wined3d: Only update the swizzle and use map for streams that are actually used in device_stream_info_from_strided(). This fixes a regression introduced by d7c7c768 and exposed by ef2d7041. Unfortunately having EXT_vertex_array_bgra support masks the problem, which is why the regression tests didn't catch it.
parent f33ce58b
......@@ -352,6 +352,8 @@ void device_stream_info_from_strided(IWineD3DDeviceImpl *This,
for (i = 0; i < sizeof(stream_info->elements) / sizeof(*stream_info->elements); ++i)
{
if (!stream_info->elements[i].format_desc) continue;
if (!GL_SUPPORT(EXT_VERTEX_ARRAY_BGRA) && stream_info->elements[i].format_desc->format == WINED3DFMT_A8R8G8B8)
{
stream_info->swizzle_map |= 1 << i;
......
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