mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Fix in another place in the code computing the memory usage.
This commit is contained in:
parent
711189c069
commit
4943ced93a
@ -577,8 +577,7 @@ gltex_final_release(IDirectDrawSurfaceImpl *This)
|
|||||||
/* All this should be part of main surface management not just a hack for texture.. */
|
/* All this should be part of main surface management not just a hack for texture.. */
|
||||||
if (glThis->loaded) {
|
if (glThis->loaded) {
|
||||||
mem_used = This->surface_desc.dwHeight *
|
mem_used = This->surface_desc.dwHeight *
|
||||||
This->surface_desc.dwHeight *
|
This->surface_desc.u1.lPitch;
|
||||||
This->surface_desc.u4.ddpfPixelFormat.u1.dwRGBBitCount;
|
|
||||||
This->ddraw_owner->free_memory(This->ddraw_owner, mem_used);
|
This->ddraw_owner->free_memory(This->ddraw_owner, mem_used);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user