H. Verbeet : wined3d: Cleanup the surface loading code a bit.