Module: wine Branch: refs/heads/master Commit: 0fbc1fc0df9ab5811c38cd9d5dbc0110dff9ea9e URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0fbc1fc0df9ab5811c38cd9d...
Author: Stefan Dösinger stefandoesinger@gmx.at Date: Thu Jul 27 17:24:55 2006 +0200
wined3d: Avoid a false ERR.
---
dlls/wined3d/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 00d68c2..5856404 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -102,7 +102,7 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release This->dib.bitmap_data = NULL; This->resource.allocatedMemory = NULL; } - IWineD3DSurface_SetMem(iface, NULL); + if(This->Flags & SFLAG_USERPTR) IWineD3DSurface_SetMem(iface, NULL);
IWineD3DResourceImpl_CleanUp((IWineD3DResource *)iface); if(iface == device->ddraw_primary)