diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 4385b24d628..71147f880b2 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -434,11 +434,7 @@ ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) { if (This->resources != NULL ) { FIXME("(%p) Device released with resources still bound, acceptable but unexpected\n", This); - -#if 0 /* TODO: Dump a list of all the resources still bound */ dumpResources(This->resources); -#endif - /* TODO: set the resources to a lost state */ } } diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c index be4304629aa..5a4b5506651 100644 --- a/dlls/wined3d/resource.c +++ b/dlls/wined3d/resource.c @@ -230,6 +230,14 @@ HRESULT WINAPI IWineD3DResourceImpl_GetParent(IWineD3DResource *iface, IUnknown return WINED3D_OK; } +void dumpResources(ResourceList *resources) { + ResourceList *iterator = resources; + + while(iterator) { + FIXME("Leftover resource %p with type %d,%s\n", iterator->resource, IWineD3DResource_GetType(iterator->resource), debug_d3dresourcetype(IWineD3DResource_GetType(iterator->resource))); + iterator = iterator->next; + } +} static const IWineD3DResourceVtbl IWineD3DResource_Vtbl = { diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index d5d5cce6962..4ea820e79ba 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -488,6 +488,9 @@ typedef struct ResourceList { struct ResourceList *next; } ResourceList; +/* A helper function that dumps a resource list */ +void dumpResources(ResourceList *resources); + /***************************************************************************** * IWineD3DDevice implementation structure */