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
bb6417d5
Commit
bb6417d5
authored
Jun 22, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Send palette destruction through the command stream.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97eb3595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
palette.c
dlls/wined3d/palette.c
+6
-1
No files found.
dlls/wined3d/palette.c
View file @
bb6417d5
...
@@ -33,6 +33,11 @@ ULONG CDECL wined3d_palette_incref(struct wined3d_palette *palette)
...
@@ -33,6 +33,11 @@ ULONG CDECL wined3d_palette_incref(struct wined3d_palette *palette)
return
refcount
;
return
refcount
;
}
}
static
void
wined3d_palette_destroy_object
(
void
*
object
)
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
ULONG
CDECL
wined3d_palette_decref
(
struct
wined3d_palette
*
palette
)
ULONG
CDECL
wined3d_palette_decref
(
struct
wined3d_palette
*
palette
)
{
{
ULONG
refcount
=
InterlockedDecrement
(
&
palette
->
ref
);
ULONG
refcount
=
InterlockedDecrement
(
&
palette
->
ref
);
...
@@ -40,7 +45,7 @@ ULONG CDECL wined3d_palette_decref(struct wined3d_palette *palette)
...
@@ -40,7 +45,7 @@ ULONG CDECL wined3d_palette_decref(struct wined3d_palette *palette)
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
palette
,
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
palette
,
refcount
);
if
(
!
refcount
)
if
(
!
refcount
)
HeapFree
(
GetProcessHeap
(),
0
,
palette
);
wined3d_cs_emit_destroy_object
(
palette
->
device
->
cs
,
wined3d_palette_destroy_object
,
palette
);
return
refcount
;
return
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