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:
parent
0de167db9e
commit
df2b1bea63
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue