Commit 5de8cd3b authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Adjust the video mem when dropping the pow2 size in GDISurface.

parent 349b93ae
......@@ -1458,6 +1458,7 @@ IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface;
HRESULT hr;
HDC hdc;
long oldsize = This->resource.size;
/* Sysmem textures have memory already allocated -
* release it, this avoids an unnecessary memcpy
......@@ -1472,6 +1473,9 @@ IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
This->pow2Height = This->currentDesc.Height;
This->Flags &= ~SFLAG_NONPOW2;
/* Adjust the opengl mem counter */
globalChangeGlRam(This->resource.size - oldsize);
/* Call GetDC to create a DIB section. We will use that
* DIB section for rendering
*
......
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