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 byd7c7c76850
and exposed byef2d704183
. 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:
parent
f33ce58be8
commit
877e252681
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue