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
f2fdb168
Commit
f2fdb168
authored
Feb 29, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Use wined3d_texture_get_sub_resource_desc() in d3d8_volume_GetDesc().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a6ee515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
volume.c
dlls/d3d8/volume.c
+3
-5
No files found.
dlls/d3d8/volume.c
View file @
f2fdb168
...
...
@@ -115,18 +115,16 @@ static HRESULT WINAPI d3d8_volume_GetContainer(IDirect3DVolume8 *iface, REFIID r
static
HRESULT
WINAPI
d3d8_volume_GetDesc
(
IDirect3DVolume8
*
iface
,
D3DVOLUME_DESC
*
desc
)
{
struct
d3d8_volume
*
volume
=
impl_from_IDirect3DVolume8
(
iface
);
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
sub_resource
;
struct
wined3d_sub_resource_desc
wined3d_desc
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
sub_resource
=
wined3d_texture_get_sub_resource
(
volume
->
wined3d_texture
,
volume
->
sub_resource_idx
);
wined3d_resource_get_desc
(
sub_resource
,
&
wined3d_desc
);
wined3d_texture_get_sub_resource_desc
(
volume
->
wined3d_texture
,
volume
->
sub_resource_idx
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Type
=
D3DRTYPE_VOLUME
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
Size
=
wined3d_desc
.
size
;
...
...
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