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 d7c7c76850
and exposed by ef2d704183. Unfortunately having
EXT_vertex_array_bgra support masks the problem, which is why the regression
tests didn't catch it.
This commit is contained in:
Henri Verbeet 2009-04-09 09:58:27 +02:00 committed by Alexandre Julliard
parent f33ce58be8
commit 877e252681
1 changed files with 2 additions and 0 deletions

View File

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