wined3d: Track vertex declaration changes on vertex shaders.
authorStefan Dösinger <stefan@codeweavers.com>
Tue, 20 Nov 2007 20:14:10 +0000 (21:14 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 21 Nov 2007 11:18:02 +0000 (12:18 +0100)
commit959212304dfaf0e7459374593b20b74fe22a0b57
tree2fae2fe7da9c4b55d9f2715efe304da172cf71e1
parentcfc5725760e3070d53b522709208237e63b2ba03
wined3d: Track vertex declaration changes on vertex shaders.

If an attribute has type D3DDECLTYPE_D3DCOLOR, the red and blue channels
are swizzled in the shader. Since the attribute is stored in the vertex
declaration and not the vertex shader, it can change by setting a new
vertex declaration. If this happens, we have to recompile the shader
with the swizzling of that specific attribute turned on or off.
dlls/wined3d/vertexdeclaration.c
dlls/wined3d/vertexshader.c
dlls/wined3d/wined3d_private.h