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
99f67c67
Commit
99f67c67
authored
Jul 20, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Respect EnableAutoDepthStencil parameter.
parent
99272f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
device.c
dlls/wined3d/device.c
+8
-6
No files found.
dlls/wined3d/device.c
View file @
99f67c67
...
...
@@ -1752,7 +1752,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
}
/* Under directX swapchains share the depth stencil, so only create one depth-stencil */
if
(
pPresentationParameters
->
EnableAutoDepthStencil
&&
hr
==
WINED3D_OK
)
{
if
(
*
(
pPresentationParameters
->
EnableAutoDepthStencil
)
&&
hr
==
WINED3D_OK
)
{
TRACE
(
"Creating depth stencil buffer
\n
"
);
if
(
This
->
depthStencilBuffer
==
NULL
)
{
hr
=
D3DCB_CreateDepthStencil
((
IUnknown
*
)
This
->
parent
,
...
...
@@ -2127,12 +2127,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface) {
TRACE
(
"Setting rendertarget to NULL
\n
"
);
This
->
renderTarget
=
NULL
;
IWineD3DSurface_GetParent
(
This
->
depthStencilBuffer
,
&
stencilBufferParent
);
IUnknown_Release
(
stencilBufferParent
);
/* once for the get parent */
if
(
IUnknown_Release
(
stencilBufferParent
)
>
0
){
/* the second time for when it was created */
FIXME
(
"(%p) Something's still holding the depthStencilBuffer
\n
"
,
This
);
if
(
This
->
depthStencilBuffer
)
{
IWineD3DSurface_GetParent
(
This
->
depthStencilBuffer
,
&
stencilBufferParent
);
IUnknown_Release
(
stencilBufferParent
);
/* once for the get parent */
if
(
IUnknown_Release
(
stencilBufferParent
)
>
0
){
/* the second time for when it was created */
FIXME
(
"(%p) Something's still holding the depthStencilBuffer
\n
"
,
This
);
}
This
->
depthStencilBuffer
=
NULL
;
}
This
->
depthStencilBuffer
=
NULL
;
for
(
i
=
0
;
i
<
This
->
NumberOfSwapChains
;
i
++
)
{
TRACE
(
"Releasing the implicit swapchain %d
\n
"
,
i
);
...
...
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