wined3d: Introduce texture_init() to handle most of the 2D texture initialization.