[2/6] WineD3D: A function for checking if a surface is offscreen

Henri Verbeet hverbeet at gmail.com
Fri Dec 4 11:54:57 CST 2009

2009/12/4 Stefan Dösinger <stefan at codeweavers.com>:
>          GLenum buffer = surface_get_gl_buffer((IWineD3DSurface *) This, (IWineD3DSwapChain *)swapchain);
> +
> +        IWineD3DSurface_GetContainer((IWineD3DSurface *) This, &IID_IWineD3DSwapChain, (void **)&swapchain);

That doesn't look quite right. Also, you should check the return value
for GetContainer().

More information about the wine-devel mailing list