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
9d553881
Commit
9d553881
authored
Dec 11, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Destroy the swapchain after the D3D device in DllMain().
parent
e191b051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
main.c
dlls/ddraw/main.c
+6
-3
No files found.
dlls/ddraw/main.c
View file @
9d553881
...
...
@@ -941,9 +941,6 @@ DllMain(HINSTANCE hInstDLL,
IDirectDraw4_AddRef
(
&
ddraw
->
IDirectDraw4_iface
);
IDirectDraw7_AddRef
(
&
ddraw
->
IDirectDraw7_iface
);
if
(
ddraw
->
wined3d_swapchain
)
ddraw_destroy_swapchain
(
ddraw
);
/* Does a D3D device exist? Destroy it
* TODO: Destroy all Vertex buffers, Lights, Materials
* and execute buffers too
...
...
@@ -954,6 +951,12 @@ DllMain(HINSTANCE hInstDLL,
while
(
IDirect3DDevice7_Release
(
&
ddraw
->
d3ddevice
->
IDirect3DDevice7_iface
));
}
/* Destroy the swapchain after any 3D device. The 3D device
* cleanup code needs a swapchain. Specifically, it tries to
* set the current render target to the front buffer. */
if
(
ddraw
->
wined3d_swapchain
)
ddraw_destroy_swapchain
(
ddraw
);
/* Try to release the objects
* Do an EnumSurfaces to find any hanging surfaces
*/
...
...
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