Henri Verbeet : wined3d: Get rid of some redundant assignments (LLVM/Clang) .

Alexandre Julliard julliard at winehq.org
Thu Oct 9 07:42:36 CDT 2008


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Oct  8 16:37:08 2008 +0200

wined3d: Get rid of some redundant assignments (LLVM/Clang).

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6ba8bc0..445fbaa 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -821,8 +821,6 @@ static HRESULT  WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, U
         object->baseTexture.pow2Matrix[15] = 1.0;
         object->target = GL_TEXTURE_2D;
         object->cond_np2 = TRUE;
-        pow2Width = Width;
-        pow2Height = Height;
         object->baseTexture.minMipLookup = &minMipLookup_noFilter;
     } else if(GL_SUPPORT(ARB_TEXTURE_RECTANGLE) &&
        (Width != pow2Width || Height != pow2Height) &&
@@ -1058,7 +1056,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
     unsigned int             i, j;
     UINT                     tmpW;
     HRESULT                  hr;
-    unsigned int pow2EdgeLength  = EdgeLength;
+    unsigned int pow2EdgeLength;
     const GlPixelFormatDesc *glDesc;
     getFormatDescEntry(Format, &GLINFO_LOCATION, &glDesc);
 




More information about the wine-cvs mailing list