[4/6] WineD3D: Infrastructure to render swapchains to a FBO

Henri Verbeet hverbeet at gmail.com
Fri Dec 4 11:55:37 CST 2009


2009/12/4 Stefan Dösinger <stefan at codeweavers.com>:
>      hr = create_primary_opengl_context(iface, (IWineD3DSwapChain *) swapchain);
> +    if(SUCCEEDED(hr))
> +    {
> +        swapchain->context[0]->render_offscreen = swapchain->render_to_fbo;
> +    }
This should probably be part of create_primary_opengl_context().

> +static inline void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_context *context)
It's kind of obvious because of the "context" parameter, but for
consistency please document the requirement for the caller to provide
an active context.



More information about the wine-devel mailing list