wined3d: Move FBO handling functions to context.c.