wined3d: Remove a redundant local variable in apply_draw_buffer().

This commit is contained in:
Henri Verbeet 2008-10-16 11:52:54 +02:00 committed by Alexandre Julliard
parent 231e2c60b5
commit bd5abfb1e4
1 changed files with 1 additions and 3 deletions

View File

@ -1409,11 +1409,9 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf
static void apply_draw_buffer(IWineD3DDeviceImpl *This, IWineD3DSurface *target, BOOL blit)
{
HRESULT hr;
IWineD3DSwapChain *swapchain;
hr = IWineD3DSurface_GetContainer(target, &IID_IWineD3DSwapChain, (void **)&swapchain);
if (SUCCEEDED(hr))
if (SUCCEEDED(IWineD3DSurface_GetContainer(target, &IID_IWineD3DSwapChain, (void **)&swapchain)))
{
IWineD3DSwapChain_Release((IUnknown *)swapchain);
glDrawBuffer(surface_get_gl_buffer(target, swapchain));