Matteo Bruni : wined3d: Modify depth-stencil location flags only after allocating the new location .