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
8d23f13b
Commit
8d23f13b
authored
Jun 13, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Implement d3d10_device_GetDeviceRemovedReason().
parent
90e662c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
device.c
dlls/d3d10core/device.c
+5
-2
device.c
dlls/d3d10core/tests/device.c
+22
-0
No files found.
dlls/d3d10core/device.c
View file @
8d23f13b
...
...
@@ -1007,9 +1007,12 @@ static void STDMETHODCALLTYPE d3d10_device_RSGetScissorRects(ID3D10Device1 *ifac
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_GetDeviceRemovedReason
(
ID3D10Device1
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
TRACE
(
"iface %p.
\n
"
,
iface
);
return
E_NOTIMPL
;
/* In the current implementation the device is never removed, so we can
* just return S_OK here. */
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_device_SetExceptionMode
(
ID3D10Device1
*
iface
,
UINT
flags
)
...
...
dlls/d3d10core/tests/device.c
View file @
8d23f13b
...
...
@@ -880,6 +880,27 @@ static void test_create_predicate(void)
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
}
static
void
test_device_removed_reason
(
void
)
{
ID3D10Device
*
device
;
ULONG
refcount
;
HRESULT
hr
;
if
(
!
(
device
=
create_device
()))
{
skip
(
"Failed to create device, skipping tests.
\n
"
);
return
;
}
hr
=
ID3D10Device_GetDeviceRemovedReason
(
device
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
ID3D10Device_GetDeviceRemovedReason
(
device
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
refcount
=
ID3D10Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
}
START_TEST
(
device
)
{
test_create_texture2d
();
...
...
@@ -893,4 +914,5 @@ START_TEST(device)
test_create_depthstencil_state
();
test_create_rasterizer_state
();
test_create_predicate
();
test_device_removed_reason
();
}
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