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
e718eae9
Commit
e718eae9
authored
Aug 20, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Skip cubemap tests when cubemap isn't supported.
parent
c38b2fe0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
d3d.c
dlls/ddraw/tests/d3d.c
+0
-0
dsurface.c
dlls/ddraw/tests/dsurface.c
+9
-3
No files found.
dlls/ddraw/tests/d3d.c
View file @
e718eae9
This diff is collapsed.
Click to expand it.
dlls/ddraw/tests/dsurface.c
View file @
e718eae9
...
...
@@ -1495,7 +1495,7 @@ HRESULT WINAPI CubeTestLvl1Enum(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *de
static
void
CubeMapTest
(
void
)
{
IDirectDraw7
*
dd7
=
NULL
;
IDirectDrawSurface7
*
cubemap
;
IDirectDrawSurface7
*
cubemap
=
NULL
;
DDSURFACEDESC2
ddsd
;
HRESULT
hr
;
UINT
num
=
0
;
...
...
@@ -1503,6 +1503,7 @@ static void CubeMapTest(void)
hr
=
IDirectDraw_QueryInterface
(
lpDD
,
&
IID_IDirectDraw7
,
(
void
**
)
&
dd7
);
ok
(
hr
==
DD_OK
,
"IDirectDraw::QueryInterface returned %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
err
;
memset
(
&
ddsd
,
0
,
sizeof
(
ddsd
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
...
...
@@ -1521,7 +1522,11 @@ static void CubeMapTest(void)
U4
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwBBitMask
=
0x001F
;
hr
=
IDirectDraw7_CreateSurface
(
dd7
,
&
ddsd
,
&
cubemap
,
NULL
);
ok
(
hr
==
DD_OK
,
"IDirectDraw7::CreateSurface returned %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
skip
(
"Can't create cubemap surface
\n
"
);
goto
err
;
}
hr
=
IDirectDrawSurface7_GetSurfaceDesc
(
cubemap
,
&
ddsd
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_GetSurfaceDesc returned %08x
\n
"
,
hr
);
...
...
@@ -1603,7 +1608,8 @@ static void CubeMapTest(void)
ok
(
hr
==
DD_OK
,
"IDirectDraw_EnumSurfaces returned %08x
\n
"
,
hr
);
ok
(
ctx
.
count
==
0
,
"%d surfaces enumerated, expected 0
\n
"
,
ctx
.
count
);
IDirectDraw7_Release
(
dd7
);
err:
if
(
dd7
)
IDirectDraw7_Release
(
dd7
);
}
static
void
test_lockrect_invalid
(
void
)
...
...
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