wined3d: Avoid a false ERR.

This commit is contained in:
Stefan Dösinger 2006-07-27 17:24:55 +02:00 committed by Alexandre Julliard
parent f9cd714ea9
commit 0fbc1fc0df
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release(IWineD3DSurface *iface) {
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)