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
3962fb5d
Commit
3962fb5d
authored
Sep 20, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Use wine_rb_remove() in state object cleanup.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f88b6321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
state.c
dlls/d3d11/state.c
+4
-4
No files found.
dlls/d3d11/state.c
View file @
3962fb5d
...
...
@@ -78,7 +78,7 @@ static ULONG STDMETHODCALLTYPE d3d11_blend_state_Release(ID3D11BlendState *iface
{
struct
d3d_device
*
device
=
impl_from_ID3D11Device
(
state
->
device
);
wined3d_mutex_lock
();
wine_rb_remove
_key
(
&
device
->
blend_states
,
&
state
->
desc
);
wine_rb_remove
(
&
device
->
blend_states
,
&
state
->
entry
);
ID3D11Device_Release
(
state
->
device
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wined3d_mutex_unlock
();
...
...
@@ -379,7 +379,7 @@ static ULONG STDMETHODCALLTYPE d3d11_depthstencil_state_Release(ID3D11DepthStenc
{
struct
d3d_device
*
device
=
impl_from_ID3D11Device
(
state
->
device
);
wined3d_mutex_lock
();
wine_rb_remove
_key
(
&
device
->
depthstencil_states
,
&
state
->
desc
);
wine_rb_remove
(
&
device
->
depthstencil_states
,
&
state
->
entry
);
ID3D11Device_Release
(
state
->
device
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wined3d_mutex_unlock
();
...
...
@@ -663,7 +663,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rasterizer_state_Release(ID3D11RasterizerSt
{
struct
d3d_device
*
device
=
impl_from_ID3D11Device
(
state
->
device
);
wined3d_mutex_lock
();
wine_rb_remove
_key
(
&
device
->
rasterizer_states
,
&
state
->
desc
);
wine_rb_remove
(
&
device
->
rasterizer_states
,
&
state
->
entry
);
wined3d_rasterizer_state_decref
(
state
->
wined3d_state
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wined3d_mutex_unlock
();
...
...
@@ -963,7 +963,7 @@ static ULONG STDMETHODCALLTYPE d3d11_sampler_state_Release(ID3D11SamplerState *i
wined3d_mutex_lock
();
wined3d_sampler_decref
(
state
->
wined3d_sampler
);
wine_rb_remove
_key
(
&
device
->
sampler_states
,
&
state
->
desc
);
wine_rb_remove
(
&
device
->
sampler_states
,
&
state
->
entry
);
ID3D11Device_Release
(
state
->
device
);
wined3d_private_store_cleanup
(
&
state
->
private_store
);
wined3d_mutex_unlock
();
...
...
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