Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fcee0558
Commit
fcee0558
authored
Apr 04, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simply inline dumpResources().
parent
5ce986f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
device.c
dlls/wined3d/device.c
+10
-2
resource.c
dlls/wined3d/resource.c
+0
-8
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-3
No files found.
dlls/wined3d/device.c
View file @
fcee0558
...
...
@@ -610,9 +610,17 @@ static ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) {
/* NOTE: You must release the parent if the object was created via a callback
** ***************************/
if
(
!
list_empty
(
&
This
->
resources
))
{
if
(
!
list_empty
(
&
This
->
resources
))
{
IWineD3DResourceImpl
*
resource
;
FIXME
(
"(%p) Device released with resources still bound, acceptable but unexpected
\n
"
,
This
);
dumpResources
(
&
This
->
resources
);
LIST_FOR_EACH_ENTRY
(
resource
,
&
This
->
resources
,
IWineD3DResourceImpl
,
resource
.
resource_list_entry
)
{
WINED3DRESOURCETYPE
type
=
IWineD3DResource_GetType
((
IWineD3DResource
*
)
resource
);
FIXME
(
"Leftover resource %p with type %s (%#x).
\n
"
,
resource
,
debug_d3dresourcetype
(
type
),
type
);
}
}
if
(
This
->
contexts
)
ERR
(
"Context array not freed!
\n
"
);
...
...
dlls/wined3d/resource.c
View file @
fcee0558
...
...
@@ -247,11 +247,3 @@ HRESULT resource_get_parent(IWineD3DResource *iface, IUnknown **pParent)
*
pParent
=
This
->
resource
.
parent
;
return
WINED3D_OK
;
}
void
dumpResources
(
struct
list
*
list
)
{
IWineD3DResourceImpl
*
resource
;
LIST_FOR_EACH_ENTRY
(
resource
,
list
,
IWineD3DResourceImpl
,
resource
.
resource_list_entry
)
{
FIXME
(
"Leftover resource %p with type %d,%s
\n
"
,
resource
,
IWineD3DResource_GetType
((
IWineD3DResource
*
)
resource
),
debug_d3dresourcetype
(
IWineD3DResource_GetType
((
IWineD3DResource
*
)
resource
)));
}
}
dlls/wined3d/wined3d_private.h
View file @
fcee0558
...
...
@@ -1571,9 +1571,6 @@ HRESULT wined3d_init(IWineD3DImpl *wined3d, UINT version, IUnknown *parent) DECL
BOOL
wined3d_register_window
(
HWND
window
,
struct
IWineD3DDeviceImpl
*
device
)
DECLSPEC_HIDDEN
;
void
wined3d_unregister_window
(
HWND
window
)
DECLSPEC_HIDDEN
;
/* A helper function that dumps a resource list */
void
dumpResources
(
struct
list
*
list
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* 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