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
d8a6972b
Commit
d8a6972b
authored
Oct 06, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11/tests: Check that private data is shared between d3d10 and d3d11 interfaces.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
parent
dae7e748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
d3d11.c
dlls/d3d11/tests/d3d11.c
+15
-0
No files found.
dlls/d3d11/tests/d3d11.c
View file @
d8a6972b
...
...
@@ -1637,6 +1637,7 @@ static void test_private_data(void)
{
ULONG
refcount
,
expected_refcount
;
D3D11_TEXTURE2D_DESC
texture_desc
;
ID3D10Texture2D
*
d3d10_texture
;
ID3D11Device
*
test_object
;
ID3D11Texture2D
*
texture
;
IDXGIDevice
*
dxgi_device
;
...
...
@@ -1785,6 +1786,20 @@ static void test_private_data(void)
ok
(
ptr
==
(
IUnknown
*
)
test_object
,
"Got unexpected ptr %p, expected %p.
\n
"
,
ptr
,
test_object
);
IUnknown_Release
(
ptr
);
hr
=
ID3D11Texture2D_QueryInterface
(
texture
,
&
IID_ID3D10Texture2D
,
(
void
**
)
&
d3d10_texture
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Texture should implement ID3D10Texture2D.
\n
"
);
if
(
SUCCEEDED
(
hr
))
{
ptr
=
NULL
;
size
=
sizeof
(
ptr
);
hr
=
ID3D10Texture2D_GetPrivateData
(
d3d10_texture
,
&
test_guid
,
&
size
,
&
ptr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
ptr
==
(
IUnknown
*
)
test_object
,
"Got unexpected ptr %p, expected %p.
\n
"
,
ptr
,
test_object
);
IUnknown_Release
(
ptr
);
ID3D10Texture2D_Release
(
d3d10_texture
);
}
IDXGISurface_Release
(
surface
);
ID3D11Texture2D_Release
(
texture
);
refcount
=
ID3D11Device_Release
(
device
);
...
...
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