Commit 4943ced9 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Fix in another place in the code computing the memory usage.

parent 711189c0
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment