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
f262cf76
Commit
f262cf76
authored
Dec 21, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: A volume really isn't a resource, despite having all the methods.
parent
abf7022c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
volume.c
dlls/d3d9/tests/volume.c
+24
-0
No files found.
dlls/d3d9/tests/volume.c
View file @
f262cf76
...
...
@@ -121,6 +121,29 @@ cleanup:
if
(
volume_ptr
)
IDirect3DVolume9_Release
(
volume_ptr
);
}
static
void
test_volume_resource
(
IDirect3DDevice9
*
device
)
{
IDirect3DVolumeTexture9
*
texture
;
IDirect3DResource9
*
resource
;
IDirect3DVolume9
*
volume
;
HRESULT
hr
;
hr
=
IDirect3DDevice9_CreateVolumeTexture
(
device
,
128
,
128
,
128
,
1
,
0
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
texture
,
0
);
ok
(
SUCCEEDED
(
hr
),
"CreateVolumeTexture failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DVolumeTexture9_GetVolumeLevel
(
texture
,
0
,
&
volume
);
ok
(
SUCCEEDED
(
hr
),
"GetVolumeLevel failed, hr %#x.
\n
"
,
hr
);
IDirect3DVolumeTexture9_Release
(
texture
);
hr
=
IDirect3DVolume9_QueryInterface
(
volume
,
&
IID_IDirect3DResource9
,
(
void
**
)
&
resource
);
ok
(
hr
==
E_NOINTERFACE
,
"QueryInterface returned %#x, expected %#x.
\n
"
,
hr
,
E_NOINTERFACE
);
IDirect3DVolume9_Release
(
volume
);
}
START_TEST
(
volume
)
{
HMODULE
d3d9_handle
;
...
...
@@ -146,6 +169,7 @@ START_TEST(volume)
}
test_volume_get_container
(
device_ptr
);
test_volume_resource
(
device_ptr
);
refcount
=
IDirect3DDevice9_Release
(
device_ptr
);
ok
(
!
refcount
,
"Device has %u references left
\n
"
,
refcount
);
...
...
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