Henri Verbeet : wined3d: Use the actual array sizes to determine the number of the various pixel/ vertex states.