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
c698052b
Commit
c698052b
authored
Nov 14, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Destroy GL contexts before changing the screen resolution.
parent
683c258f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
swapchain.c
dlls/wined3d/swapchain.c
+3
-3
No files found.
dlls/wined3d/swapchain.c
View file @
c698052b
...
...
@@ -106,6 +106,9 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
HeapFree
(
GetProcessHeap
(),
0
,
This
->
backBuffer
);
}
for
(
i
=
0
;
i
<
This
->
num_contexts
;
i
++
)
{
DestroyContext
(
This
->
wineD3DDevice
,
This
->
context
[
i
]);
}
/* Restore the screen resolution if we rendered in fullscreen
* This will restore the screen resolution to what it was before creating the swapchain. In case of d3d8 and d3d9
* this will be the original desktop resolution. In case of d3d7 this will be a NOP because ddraw sets the resolution
...
...
@@ -118,9 +121,6 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
mode
.
Format
=
This
->
orig_fmt
;
IWineD3DDevice_SetDisplayMode
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
,
0
,
&
mode
);
}
for
(
i
=
0
;
i
<
This
->
num_contexts
;
i
++
)
{
DestroyContext
(
This
->
wineD3DDevice
,
This
->
context
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
context
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
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