[D3D 26] The joys of copy-pasting...
Lionel Ulmer
lionel.ulmer at free.fr
Tue Dec 17 13:00:28 CST 2002
Changelog:
Fix in another place in the code computing the memory usage.
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- ../wine_base/dlls/ddraw/d3dtexture.c Sun Dec 15 23:21:54 2002
+++ dlls/ddraw/d3dtexture.c Tue Dec 17 19:58:25 2002
@@ -577,8 +577,7 @@
/* 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);
}
More information about the wine-patches
mailing list