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

Alexandre Julliard julliard at winehq.org
Thu Oct 16 06:07:16 CDT 2008


Module: wine
Branch: master
Commit: bd5abfb1e40b889866df86698232c6ad2bd067eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bd5abfb1e40b889866df86698232c6ad2bd067eb

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct 16 11:52:54 2008 +0200

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

---

 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));




More information about the wine-cvs mailing list