[PATCH 2/5] wined3d: Calculate the texture matrix solely from the vertex declaration.