wined3d: Use the texture dimension helpers in read_from_framebuffer().