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
33eb9393
Commit
33eb9393
authored
Apr 23, 2009
by
David Adam
Committed by
Alexandre Julliard
Apr 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: SetDepthStencilSurface is always called when AutoDepthStencil is enabled.
parent
3ab52c20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
device.c
dlls/d3d8/tests/device.c
+3
-3
device.c
dlls/d3d9/tests/device.c
+3
-3
device.c
dlls/wined3d/device.c
+19
-2
No files found.
dlls/d3d8/tests/device.c
View file @
33eb9393
...
...
@@ -1388,13 +1388,13 @@ static void test_depth_stencil_reset(void)
present_parameters
.
AutoDepthStencilFormat
=
D3DFMT_D24S8
;
hr
=
IDirect3DDevice8_Reset
(
device
,
&
present_parameters
);
todo_wine
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice8_Reset failed with 0x%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice8_Reset failed with 0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
cleanup
;
hr
=
IDirect3DDevice8_GetDepthStencilSurface
(
device
,
&
surface
);
todo_wine
ok
(
hr
==
D3D_OK
,
"GetDepthStencilSurface failed with 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
surface
!=
NULL
,
"Depth stencil should not be NULL
\n
"
);
ok
(
hr
==
D3D_OK
,
"GetDepthStencilSurface failed with 0x%08x
\n
"
,
hr
);
ok
(
surface
!=
NULL
,
"Depth stencil should not be NULL
\n
"
);
if
(
surface
)
IDirect3DSurface8_Release
(
surface
);
cleanup:
...
...
dlls/d3d9/tests/device.c
View file @
33eb9393
...
...
@@ -1079,13 +1079,13 @@ static void test_reset(void)
d3dpp
.
AutoDepthStencilFormat
=
D3DFMT_D24S8
;
hr
=
IDirect3DDevice9_Reset
(
pDevice
,
&
d3dpp
);
todo_wine
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Reset failed with 0x%08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Reset failed with 0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
cleanup
;
hr
=
IDirect3DDevice9_GetDepthStencilSurface
(
pDevice
,
&
surface
);
todo_wine
ok
(
hr
==
D3D_OK
,
"GetDepthStencilSurface failed with 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
surface
!=
NULL
,
"Depth stencil should not be NULL
\n
"
);
ok
(
hr
==
D3D_OK
,
"GetDepthStencilSurface failed with 0x%08x
\n
"
,
hr
);
ok
(
surface
!=
NULL
,
"Depth stencil should not be NULL
\n
"
);
if
(
surface
)
IDirect3DSurface9_Release
(
surface
);
cleanup:
...
...
dlls/wined3d/device.c
View file @
33eb9393
...
...
@@ -7612,8 +7612,25 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
ERR
(
"Cannot change the device window yet
\n
"
);
}
if
(
pPresentationParameters
->
EnableAutoDepthStencil
&&
!
This
->
auto_depth_stencil_buffer
)
{
WARN
(
"Auto depth stencil enabled, but no auto depth stencil present, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
HRESULT
hrc
;
TRACE
(
"Creating the depth stencil buffer
\n
"
);
hrc
=
IWineD3DDeviceParent_CreateDepthStencilSurface
(
This
->
device_parent
,
This
->
parent
,
pPresentationParameters
->
BackBufferWidth
,
pPresentationParameters
->
BackBufferHeight
,
pPresentationParameters
->
AutoDepthStencilFormat
,
pPresentationParameters
->
MultiSampleType
,
pPresentationParameters
->
MultiSampleQuality
,
FALSE
,
&
This
->
auto_depth_stencil_buffer
);
if
(
FAILED
(
hrc
))
{
ERR
(
"Failed to create the depth stencil buffer
\n
"
);
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
return
WINED3DERR_INVALIDCALL
;
}
}
/* Reset the depth stencil */
...
...
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