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
52fd36b6
Commit
52fd36b6
authored
Jun 23, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Implement IDirect3DVolume9 private data handling on top of wined3d_resource.
parent
7a8a7b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
volume.c
dlls/d3d9/volume.c
+9
-3
No files found.
dlls/d3d9/volume.c
View file @
52fd36b6
...
...
@@ -126,13 +126,15 @@ static HRESULT WINAPI IDirect3DVolume9Impl_SetPrivateData(IDirect3DVolume9 *ifac
const
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DVolume9Impl
*
This
=
impl_from_IDirect3DVolume9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
refguid
),
pData
,
SizeOfData
,
Flags
);
wined3d_mutex_lock
();
hr
=
wined3d_volume_set_private_data
(
This
->
wined3d_volume
,
refguid
,
pData
,
SizeOfData
,
Flags
);
resource
=
wined3d_volume_get_resource
(
This
->
wined3d_volume
);
hr
=
wined3d_resource_set_private_data
(
resource
,
refguid
,
pData
,
SizeOfData
,
Flags
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -142,13 +144,15 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetPrivateData(IDirect3DVolume9 *ifac
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVolume9Impl
*
This
=
impl_from_IDirect3DVolume9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s, data %p, data_size %p.
\n
"
,
iface
,
debugstr_guid
(
refguid
),
pData
,
pSizeOfData
);
wined3d_mutex_lock
();
hr
=
wined3d_volume_get_private_data
(
This
->
wined3d_volume
,
refguid
,
pData
,
pSizeOfData
);
resource
=
wined3d_volume_get_resource
(
This
->
wined3d_volume
);
hr
=
wined3d_resource_get_private_data
(
resource
,
refguid
,
pData
,
pSizeOfData
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -157,12 +161,14 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetPrivateData(IDirect3DVolume9 *ifac
static
HRESULT
WINAPI
IDirect3DVolume9Impl_FreePrivateData
(
IDirect3DVolume9
*
iface
,
REFGUID
refguid
)
{
IDirect3DVolume9Impl
*
This
=
impl_from_IDirect3DVolume9
(
iface
);
struct
wined3d_resource
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, guid %s.
\n
"
,
iface
,
debugstr_guid
(
refguid
));
wined3d_mutex_lock
();
hr
=
wined3d_volume_free_private_data
(
This
->
wined3d_volume
,
refguid
);
resource
=
wined3d_volume_get_resource
(
This
->
wined3d_volume
);
hr
=
wined3d_resource_free_private_data
(
resource
,
refguid
);
wined3d_mutex_unlock
();
return
hr
;
...
...
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