Gerald Pfeifer : wined3d: Remove dead code (and variable) from wined3d_surface_flip. wined3d_surface_flip.

Alexandre Julliard julliard at winehq.org
Thu Sep 8 14:52:11 CDT 2011


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Thu Sep  8 00:38:52 2011 +0200

wined3d: Remove dead code (and variable) from wined3d_surface_flip. wined3d_surface_flip.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 21b4f9a..4cc04cb 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3767,8 +3767,6 @@ HRESULT CDECL wined3d_surface_releasedc(struct wined3d_surface *surface, HDC dc)
 
 HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined3d_surface *override, DWORD flags)
 {
-    struct wined3d_swapchain *swapchain;
-
     TRACE("surface %p, override %p, flags %#x.\n", surface, override, flags);
 
     if (flags)
@@ -3787,7 +3785,6 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
         ERR("Flipped surface is not on a swapchain.\n");
         return WINEDDERR_NOTFLIPPABLE;
     }
-    swapchain = surface->container.u.swapchain;
 
     /* Flipping is only supported on render targets and overlays. */
     if (!(surface->resource.usage & (WINED3DUSAGE_RENDERTARGET | WINED3DUSAGE_OVERLAY)))




More information about the wine-cvs mailing list