wined3d: Get rid of the "swapchain" parameter to surface_get_gl_buffer().
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 15 Dec 2009 16:51:36 +0000 (17:51 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 16 Dec 2009 11:22:18 +0000 (12:22 +0100)
commita215d326a59415745fd6ba31deb2f2a0a0920788
treeb62986f5e571680b38a0d4b4cc91fc673a7de9f1
parent97f04248fcf9b5005169c26900babdc46d0aed3d
wined3d: Get rid of the "swapchain" parameter to surface_get_gl_buffer().

Casting the container to "IWineD3DSwapChainImpl *" is always safe when
SFLAG_SWAPCHAIN is set on the surface. Most callers don't have a real
need for the swapchain, and end up calling GetContainer() just to pass
it to surface_get_gl_buffer().
dlls/wined3d/context.c
dlls/wined3d/device.c
dlls/wined3d/surface.c
dlls/wined3d/wined3d_private.h