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
e1b96eb3
Commit
e1b96eb3
authored
Oct 05, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the depth/stencil buffer to NULL before releasing it.
To prevent device_resource_released() from detecting it as still in use.
parent
5fa84c56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
device.c
dlls/wined3d/device.c
+11
-5
No files found.
dlls/wined3d/device.c
View file @
e1b96eb3
...
...
@@ -2107,13 +2107,19 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
This
->
onscreen_depth_stencil
=
NULL
;
}
TRACE
(
"Releasing the depth stencil buffer at %p
\n
"
,
This
->
depth_stencil
);
if
(
This
->
depth_stencil
&&
IWineD3DSurface_Release
((
IWineD3DSurface
*
)
This
->
depth_stencil
))
if
(
This
->
depth_stencil
)
{
if
(
This
->
auto_depth_stencil
!=
This
->
depth_stencil
)
FIXME
(
"(%p) Something is still holding the depth/stencil buffer.
\n
"
,
This
);
IWineD3DSurfaceImpl
*
ds
=
This
->
depth_stencil
;
TRACE
(
"Releasing depth/stencil buffer %p.
\n
"
,
ds
);
This
->
depth_stencil
=
NULL
;
if
(
IWineD3DSurface_Release
((
IWineD3DSurface
*
)
ds
)
&&
ds
!=
This
->
auto_depth_stencil
)
{
ERR
(
"Something is still holding a reference to depth/stencil buffer %p.
\n
"
,
ds
);
}
}
This
->
depth_stencil
=
NULL
;
TRACE
(
"Releasing the render target at %p
\n
"
,
This
->
render_targets
[
0
]);
IWineD3DSurface_Release
((
IWineD3DSurface
*
)
This
->
render_targets
[
0
]);
...
...
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