Stefan Dösinger : wined3d: A function for checking if a surface is offscreen.