From 4943ced93abec6377eee632716298b1bd8d65bc4 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Wed, 18 Dec 2002 02:23:49 +0000 Subject: [PATCH] Fix in another place in the code computing the memory usage. --- dlls/ddraw/d3dtexture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ddraw/d3dtexture.c b/dlls/ddraw/d3dtexture.c index 6f3ef212141..e248c585b05 100644 --- a/dlls/ddraw/d3dtexture.c +++ b/dlls/ddraw/d3dtexture.c @@ -577,8 +577,7 @@ gltex_final_release(IDirectDrawSurfaceImpl *This) /* All this should be part of main surface management not just a hack for texture.. */ if (glThis->loaded) { mem_used = This->surface_desc.dwHeight * - This->surface_desc.dwHeight * - This->surface_desc.u4.ddpfPixelFormat.u1.dwRGBBitCount; + This->surface_desc.u1.lPitch; This->ddraw_owner->free_memory(This->ddraw_owner, mem_used); }