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
d51ea011
Commit
d51ea011
authored
Sep 10, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reset the auto depth stencil.
parent
43f5d8e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
device.c
dlls/wined3d/device.c
+9
-2
No files found.
dlls/wined3d/device.c
View file @
d51ea011
...
@@ -7356,10 +7356,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
...
@@ -7356,10 +7356,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
pPresentationParameters
->
hDeviceWindow
!=
swapchain
->
presentParms
.
hDeviceWindow
)
{
pPresentationParameters
->
hDeviceWindow
!=
swapchain
->
presentParms
.
hDeviceWindow
)
{
ERR
(
"Cannot change the device window yet
\n
"
);
ERR
(
"Cannot change the device window yet
\n
"
);
}
}
if
(
pPresentationParameters
->
EnableAutoDepthStencil
!=
swapchain
->
presentParms
.
EnableAutoDepthStencil
)
{
if
(
pPresentationParameters
->
EnableAutoDepthStencil
&&
!
This
->
auto_depth_stencil_buffer
)
{
ERR
(
"What do do about a changed auto depth stencil parameter?
\n
"
);
WARN
(
"Auto depth stencil enabled, but no auto depth stencil present, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
}
/* Reset the depth stencil */
if
(
pPresentationParameters
->
EnableAutoDepthStencil
)
IWineD3DDevice_SetDepthStencilSurface
(
iface
,
This
->
auto_depth_stencil_buffer
);
else
IWineD3DDevice_SetDepthStencilSurface
(
iface
,
NULL
);
delete_opengl_contexts
(
iface
,
(
IWineD3DSwapChain
*
)
swapchain
);
delete_opengl_contexts
(
iface
,
(
IWineD3DSwapChain
*
)
swapchain
);
if
(
pPresentationParameters
->
Windowed
)
{
if
(
pPresentationParameters
->
Windowed
)
{
...
...
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