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

wined3d: Avoid a false ERR.

parent f9cd714e
......@@ -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)
......
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