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
9ba058e9
Commit
9ba058e9
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 vertex declaration destruction through the command stream.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87f667b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+10
-2
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
9ba058e9
...
...
@@ -50,6 +50,14 @@ ULONG CDECL wined3d_vertex_declaration_incref(struct wined3d_vertex_declaration
return
refcount
;
}
static
void
wined3d_vertex_declaration_destroy_object
(
void
*
object
)
{
struct
wined3d_vertex_declaration
*
declaration
=
object
;
HeapFree
(
GetProcessHeap
(),
0
,
declaration
->
elements
);
HeapFree
(
GetProcessHeap
(),
0
,
declaration
);
}
ULONG
CDECL
wined3d_vertex_declaration_decref
(
struct
wined3d_vertex_declaration
*
declaration
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
declaration
->
ref
);
...
...
@@ -58,9 +66,9 @@ ULONG CDECL wined3d_vertex_declaration_decref(struct wined3d_vertex_declaration
if
(
!
refcount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
declaration
->
elements
);
declaration
->
parent_ops
->
wined3d_object_destroyed
(
declaration
->
parent
);
HeapFree
(
GetProcessHeap
(),
0
,
declaration
);
wined3d_cs_emit_destroy_object
(
declaration
->
device
->
cs
,
wined3d_vertex_declaration_destroy_object
,
declaration
);
}
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