2009/12/11 Stefan Dösinger <stefandoesin...@gmx.at>: > Am 11.12.2009 um 11:33 schrieb Henri Verbeet: >> "context_create(device, (IWineD3DSurfaceImpl *)swapchain->frontBuffer, >> window, FALSE /* pbuffer */, present_parameters);" > What is missing is access to the swapchain->render_to_fbo setting. > context_create could use the same logic as the swapchain_create code(look at > window and backbuffer size etc).
It's really not that hard, you just call surface_is_offscreen() on the target. Arguably swapchain_init() shouldn't be screwing around with context creation in the first place, but that's really a separate issue, unless you're volunteering to clean that up first.