2009/12/4 Stefan Dösinger stefan@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().