Marcus Meissner : wined3d: Removed deadcode.

Alexandre Julliard julliard at winehq.org
Mon Jan 21 05:59:04 CST 2008


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Jan 20 20:47:07 2008 +0100

wined3d: Removed deadcode.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index a6a040b..9243777 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -993,7 +993,6 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *This, GLenum fm
     GLint  prev_store;
     GLint  prev_rasterpos[4];
     GLint skipBytes = 0;
-    BOOL storechanged = FALSE;
     UINT pitch = IWineD3DSurface_GetPitch((IWineD3DSurface *) This);    /* target is argb, 4 byte */
     IWineD3DDeviceImpl *myDevice = (IWineD3DDeviceImpl *) This->resource.wineD3DDevice;
     IWineD3DSwapChainImpl *swapchain;
@@ -1074,10 +1073,6 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *This, GLenum fm
     /* Reset to previous pack row length */
     glPixelStorei(GL_UNPACK_ROW_LENGTH, skipBytes);
     vcheckGLcall("glPixelStorei GL_UNPACK_ROW_LENGTH");
-    if(storechanged) {
-        glPixelStorei(GL_PACK_SWAP_BYTES, prev_store);
-        vcheckGLcall("glPixelStorei GL_PACK_SWAP_BYTES");
-    }
 
     if(!swapchain) {
         glDrawBuffer(myDevice->offscreenBuffer);




More information about the wine-cvs mailing list