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
cee4d0bb
Commit
cee4d0bb
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
dxgi/tests: Check that DXGI surface implements ID3D11Texture2D.
parent
e0bd4458
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
device.c
dlls/dxgi/tests/device.c
+8
-3
No files found.
dlls/dxgi/tests/device.c
View file @
cee4d0bb
...
...
@@ -172,10 +172,10 @@ done:
static
void
test_create_surface
(
void
)
{
ID3D10Texture2D
*
texture
;
IDXGISurface
*
surface
;
DXGI_SURFACE_DESC
desc
;
IDXGISurface
*
surface
;
IDXGIDevice
*
device
;
IUnknown
*
texture
;
ULONG
refcount
;
HRESULT
hr
;
...
...
@@ -196,7 +196,12 @@ static void test_create_surface(void)
hr
=
IDXGISurface_QueryInterface
(
surface
,
&
IID_ID3D10Texture2D
,
(
void
**
)
&
texture
);
ok
(
SUCCEEDED
(
hr
),
"Surface should implement ID3D10Texture2D
\n
"
);
if
(
SUCCEEDED
(
hr
))
ID3D10Texture2D_Release
(
texture
);
IUnknown_Release
(
texture
);
hr
=
IDXGISurface_QueryInterface
(
surface
,
&
IID_ID3D11Texture2D
,
(
void
**
)
&
texture
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Surface should implement ID3D11Texture2D.
\n
"
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
texture
);
IDXGISurface_Release
(
surface
);
refcount
=
IDXGIDevice_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