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
5e64fd70
Commit
5e64fd70
authored
Aug 13, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't bother downloading buffer contents on destruction.
parent
6c45e6fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
buffer.c
dlls/wined3d/buffer.c
+10
-1
No files found.
dlls/wined3d/buffer.c
View file @
5e64fd70
...
...
@@ -551,12 +551,21 @@ static void buffer_unload(struct wined3d_resource *resource)
ULONG
CDECL
wined3d_buffer_decref
(
struct
wined3d_buffer
*
buffer
)
{
ULONG
refcount
=
InterlockedDecrement
(
&
buffer
->
resource
.
ref
);
struct
wined3d_context
*
context
;
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
buffer
,
refcount
);
if
(
!
refcount
)
{
buffer_unload
(
&
buffer
->
resource
);
if
(
buffer
->
buffer_object
)
{
context
=
context_acquire
(
buffer
->
resource
.
device
,
NULL
);
delete_gl_buffer
(
buffer
,
context
->
gl_info
);
context_release
(
context
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
->
conversion_map
);
}
resource_cleanup
(
&
buffer
->
resource
);
buffer
->
resource
.
parent_ops
->
wined3d_object_destroyed
(
buffer
->
resource
.
parent
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
->
maps
);
...
...
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