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
c32def6c
Commit
c32def6c
authored
Sep 14, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Check that render target view implements ID3D11RenderTargetView.
parent
fbf7b84d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/d3d10core/tests/device.c
+11
-0
No files found.
dlls/d3d10core/tests/device.c
View file @
c32def6c
...
...
@@ -783,6 +783,7 @@ static void test_create_rendertarget_view(void)
ID3D10Device
*
device
,
*
tmp
;
ID3D10Texture2D
*
texture
;
ID3D10Buffer
*
buffer
;
IUnknown
*
iface
;
HRESULT
hr
;
if
(
!
(
device
=
create_device
()))
...
...
@@ -831,6 +832,11 @@ static void test_create_rendertarget_view(void)
ok
(
refcount
==
expected_refcount
,
"Got unexpected refcount %u, expected %u.
\n
"
,
refcount
,
expected_refcount
);
ID3D10Device_Release
(
tmp
);
hr
=
ID3D10RenderTargetView_QueryInterface
(
rtview
,
&
IID_ID3D11RenderTargetView
,
(
void
**
)
&
iface
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Render target view should implement ID3D11RenderTargetView.
\n
"
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
iface
);
ID3D10RenderTargetView_Release
(
rtview
);
ID3D10Buffer_Release
(
buffer
);
...
...
@@ -859,6 +865,11 @@ static void test_create_rendertarget_view(void)
"Expected view dimension D3D10_RTV_DIMENSION_TEXTURE2D, got %#x
\n
"
,
rtv_desc
.
ViewDimension
);
ok
(
U
(
rtv_desc
).
Texture2D
.
MipSlice
==
0
,
"Expected mip slice 0, got %#x
\n
"
,
U
(
rtv_desc
).
Texture2D
.
MipSlice
);
hr
=
ID3D10RenderTargetView_QueryInterface
(
rtview
,
&
IID_ID3D11RenderTargetView
,
(
void
**
)
&
iface
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Render target view should implement ID3D11RenderTargetView.
\n
"
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
iface
);
ID3D10RenderTargetView_Release
(
rtview
);
ID3D10Texture2D_Release
(
texture
);
...
...
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