Stefan Dösinger : wined3d: Mark the SYSMEM copy outdated after releasing memory.
Alexandre Julliard
julliard at winehq.org
Tue Apr 8 06:37:51 CDT 2008
Module: wine
Branch: master
Commit: df2b1bea63223533fcae81eccf9abe86b2fc8dda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=df2b1bea63223533fcae81eccf9abe86b2fc8dda
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Apr 7 23:24:12 2008 +0200
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.
---
dlls/wined3d/device.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index cd39e20..c594460 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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) {
More information about the wine-cvs
mailing list