Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e0c87731
Commit
e0c87731
authored
Apr 10, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a resource dumper.
parent
6e4b960a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
device.c
dlls/wined3d/device.c
+0
-4
resource.c
dlls/wined3d/resource.c
+8
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-0
No files found.
dlls/wined3d/device.c
View file @
e0c87731
...
...
@@ -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 */
}
}
...
...
dlls/wined3d/resource.c
View file @
e0c87731
...
...
@@ -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
=
{
...
...
dlls/wined3d/wined3d_private.h
View file @
e0c87731
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment