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

Henri Verbeet hverbeet at codeweavers.com
Thu Oct 16 04:52:54 CDT 2008


---
 dlls/wined3d/context.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 43b8533..bf77f12 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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));
-- 
1.5.6.4



--------------050106040801040809060608--



More information about the wine-patches mailing list