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
cd96c6e3
Commit
cd96c6e3
authored
Sep 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Release the stateblock before destroying the GL context.
parent
47c84f4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/wined3d/device.c
+4
-4
No files found.
dlls/wined3d/device.c
View file @
cd96c6e3
...
...
@@ -7057,6 +7057,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
else
IWineD3DDevice_SetDepthStencilSurface
(
iface
,
NULL
);
TRACE
(
"Resetting stateblock
\n
"
);
IWineD3DStateBlock_Release
((
IWineD3DStateBlock
*
)
This
->
updateStateBlock
);
IWineD3DStateBlock_Release
((
IWineD3DStateBlock
*
)
This
->
stateBlock
);
delete_opengl_contexts
(
iface
,
(
IWineD3DSwapChain
*
)
swapchain
);
if
(
pPresentationParameters
->
Windowed
)
{
...
...
@@ -7131,10 +7135,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
This
->
exStyle
=
exStyle
;
}
TRACE
(
"Resetting stateblock
\n
"
);
IWineD3DStateBlock_Release
((
IWineD3DStateBlock
*
)
This
->
updateStateBlock
);
IWineD3DStateBlock_Release
((
IWineD3DStateBlock
*
)
This
->
stateBlock
);
/* Note: No parent needed for initial internal stateblock */
hr
=
IWineD3DDevice_CreateStateBlock
(
iface
,
WINED3DSBT_INIT
,
(
IWineD3DStateBlock
**
)
&
This
->
stateBlock
,
NULL
);
if
(
FAILED
(
hr
))
ERR
(
"Resetting the stateblock failed with error 0x%08x
\n
"
,
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