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
38800d8e
Commit
38800d8e
authored
Apr 15, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Forward volume refcounts to the container.
parent
fadfdf21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
volume.c
dlls/wined3d/volume.c
+18
-2
No files found.
dlls/wined3d/volume.c
View file @
38800d8e
...
...
@@ -128,7 +128,15 @@ static void volume_unload(struct wined3d_resource *resource)
ULONG
CDECL
wined3d_volume_incref
(
struct
wined3d_volume
*
volume
)
{
ULONG
refcount
=
InterlockedIncrement
(
&
volume
->
resource
.
ref
);
ULONG
refcount
;
if
(
volume
->
container
)
{
TRACE
(
"Forwarding to container %p.
\n
"
,
volume
->
container
);
return
wined3d_texture_incref
(
volume
->
container
);
}
refcount
=
InterlockedIncrement
(
&
volume
->
resource
.
ref
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
volume
,
refcount
);
...
...
@@ -138,7 +146,15 @@ ULONG CDECL wined3d_volume_incref(struct wined3d_volume *volume)
/* Do not call while under the GL lock. */
ULONG
CDECL
wined3d_volume_decref
(
struct
wined3d_volume
*
volume
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
volume
->
resource
.
ref
);
ULONG
refcount
;
if
(
volume
->
container
)
{
TRACE
(
"Forwarding to container %p.
\n
"
,
volume
->
container
);
return
wined3d_texture_decref
(
volume
->
container
);
}
refcount
=
InterlockedDecrement
(
&
volume
->
resource
.
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
volume
,
refcount
);
...
...
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