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
5ce2e1f3
Commit
5ce2e1f3
authored
Aug 28, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Mark DepthFill blit failures between beginScene and EndScene broken.
parent
2fc534ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
d3d.c
dlls/ddraw/tests/d3d.c
+22
-7
No files found.
dlls/ddraw/tests/d3d.c
View file @
5ce2e1f3
...
...
@@ -706,20 +706,35 @@ static void SceneTest(void)
/* Test a normal BeginScene / EndScene pair, this should work */
hr
=
IDirect3DDevice7_BeginScene
(
lpD3DDevice
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_BeginScene failed with %08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
hr
=
IDirect3DDevice7_EndScene
(
lpD3DDevice
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_EndScene failed with %08x
\n
"
,
hr
);
}
if
(
lpDDSdepth
)
{
DDBLTFX
fx
;
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
if
(
lpDDSdepth
)
{
hr
=
IDirectDrawSurface7_Blt
(
lpDDSdepth
,
NULL
,
NULL
,
NULL
,
DDBLT_DEPTHFILL
,
&
fx
);
ok
(
hr
==
D3D_OK
,
"Depthfill failed outside a BeginScene / EndScene pair, hr 0x%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_BeginScene
(
lpD3DDevice
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_BeginScene failed with %08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IDirectDrawSurface7_Blt
(
lpDDSdepth
,
NULL
,
NULL
,
NULL
,
DDBLT_DEPTHFILL
,
&
fx
);
ok
(
hr
==
D3D_OK
,
"Depthfill failed in a BeginScene / EndScene pair
\n
"
);
}
else
{
skip
(
"Depth stencil creation failed at startup, skipping
\n
"
);
ok
(
hr
==
D3D_OK
||
broken
(
hr
==
E_FAIL
),
"Depthfill failed in a BeginScene / EndScene pair, hr 0x%08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_EndScene
(
lpD3DDevice
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_EndScene failed with %08x
\n
"
,
hr
);
}
hr
=
IDirect3DDevice7_EndScene
(
lpD3DDevice
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_EndScene failed with %08x
\n
"
,
hr
);
}
else
{
skip
(
"Depth stencil creation failed at startup, skipping depthfill test
\n
"
);
}
/* Test another EndScene without having begun a new scene. Should return an error */
...
...
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