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

wined3d: Add a resource dumper.

parent 6e4b960a
......@@ -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 */
}
}
......
......@@ -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 =
{
......
......@@ -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
*/
......
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