Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bc9407a4
Commit
bc9407a4
authored
Jun 01, 2011
by
Piotr Pawłow
Committed by
Alexandre Julliard
Jun 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set container of swapchain surfaces to WINED3D_CONTAINER_NONE in…
wined3d: Set container of swapchain surfaces to WINED3D_CONTAINER_NONE in swapchain_init() error path.
parent
6ed2208e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
swapchain.c
dlls/wined3d/swapchain.c
+6
-0
No files found.
dlls/wined3d/swapchain.c
View file @
bc9407a4
...
...
@@ -1072,7 +1072,10 @@ err:
for
(
i
=
0
;
i
<
swapchain
->
presentParms
.
BackBufferCount
;
++
i
)
{
if
(
swapchain
->
back_buffers
[
i
])
{
surface_set_container
(
swapchain
->
back_buffers
[
i
],
WINED3D_CONTAINER_NONE
,
NULL
);
wined3d_surface_decref
(
swapchain
->
back_buffers
[
i
]);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
swapchain
->
back_buffers
);
}
...
...
@@ -1089,7 +1092,10 @@ err:
}
if
(
swapchain
->
front_buffer
)
{
surface_set_container
(
swapchain
->
front_buffer
,
WINED3D_CONTAINER_NONE
,
NULL
);
wined3d_surface_decref
(
swapchain
->
front_buffer
);
}
return
hr
;
}
...
...
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