wined3d: Mark the SYSMEM copy outdated after releasing memory.

Strictly speaking this is redundant because the UnLoad before did the
job, but if we mess with the allocated memory we have to tell the
surface about that. Updating INDRAWABLE will automatically mark SYSMEM
outdated.
This commit is contained in:
Stefan Dösinger 2008-04-07 23:24:12 +02:00 committed by Alexandre Julliard
parent 0de167db9e
commit df2b1bea63
1 changed files with 2 additions and 0 deletions

View File

@ -7002,6 +7002,8 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
surface->resource.allocatedMemory = NULL;
surface->resource.heapMemory = NULL;
surface->resource.size = IWineD3DSurface_GetPitch((IWineD3DSurface *) surface) * surface->pow2Width;
/* INDRAWABLE is a sane place for implicit targets / depth stencil after the reset */
IWineD3DSurface_ModifyLocation((IWineD3DSurface *) surface, SFLAG_INDRAWABLE, TRUE);
}
static HRESULT WINAPI reset_unload_resources(IWineD3DResource *resource, void *data) {