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

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.
parent 0de167db
......@@ -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) {
......
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