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
d4f504c6
Commit
d4f504c6
authored
Dec 05, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Add a IDirect3DDevice7 GetCaps test.
parent
cc06d182
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
device.c
dlls/ddraw/device.c
+6
-0
d3d.c
dlls/ddraw/tests/d3d.c
+16
-0
No files found.
dlls/ddraw/device.c
View file @
d4f504c6
...
...
@@ -459,6 +459,12 @@ IDirect3DDeviceImpl_7_GetCaps(IDirect3DDevice7 *iface,
TRACE
(
"iface %p, device_desc %p.
\n
"
,
iface
,
Desc
);
if
(
!
Desc
)
{
WARN
(
"Desc is NULL, returning DDERR_INVALIDPARAMS.
\n
"
);
return
DDERR_INVALIDPARAMS
;
}
/* Call the same function used by IDirect3D, this saves code */
return
IDirect3DImpl_GetCaps
(
This
->
ddraw
->
wined3d
,
&
OldDesc
,
Desc
);
}
...
...
dlls/ddraw/tests/d3d.c
View file @
d4f504c6
...
...
@@ -4980,6 +4980,21 @@ static void test_get_caps1(void)
ok
(
hr
==
D3D_OK
,
"GetCaps with different sizes returned hr %#x, expected D3D_OK.
\n
"
,
hr
);
}
static
void
test_get_caps7
(
void
)
{
HRESULT
hr
;
D3DDEVICEDESC7
desc
;
hr
=
IDirect3DDevice7_GetCaps
(
lpD3DDevice
,
NULL
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirect3DDevice7::GetCaps(NULL) returned hr %#x, expected INVALIDPARAMS.
\n
"
,
hr
);
memset
(
&
desc
,
0
,
sizeof
(
desc
));
hr
=
IDirect3DDevice7_GetCaps
(
lpD3DDevice
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7::GetCaps(non-NULL) returned hr %#x, expected D3D_OK.
\n
"
,
hr
);
/* There's no dwSize in D3DDEVICEDESC7 */
}
START_TEST
(
d3d
)
{
init_function_pointers
();
...
...
@@ -5007,6 +5022,7 @@ START_TEST(d3d)
SetRenderTargetTest
();
VertexBufferLockRest
();
z_format_test
();
test_get_caps7
();
ReleaseDirect3D
();
}
...
...
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