H. Verbeet : wined3d: Add a function to determine if a surface is the front or the backbuffer for a swapchain , and return the corresponding GLenum.