wined3d: Just check the vertex declaration for colour usage.
commit4929e519323c41cc32aa01434980ba1316fcfac7
authorElizabeth Figura <zfigura@codeweavers.com>
Fri, 3 May 2024 21:57:18 +0000 (3 16:57 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 5 Jun 2024 13:58:37 +0000 (5 15:58 +0200)
treeb972d3d18e5b3e95e16d4f2a23b39fc235acb894
parentdb63c8be29fdadf95e4ce2788f5b39e58b0cfe86
wined3d: Just check the vertex declaration for colour usage.

Do not check the stream info. In practice, this amounts to a difference if the
usage is included in the vertex declaration but the corresponding stream is not
bound; however, tests show that in this case we should supply a default colour
of zero.
dlls/d3d9/tests/visual.c
dlls/wined3d/device.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/utils.c
dlls/wined3d/vertexdeclaration.c
dlls/wined3d/wined3d_private.h