[PATCH 1/6] wined3d: Validate the initial texture data before initialising the texture.