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
c2cf1935
Commit
c2cf1935
authored
Dec 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Forward the volume's GetDevice() to the texture instead of the wined3d volume.
parent
789fed50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
volume.c
dlls/d3d9/volume.c
+13
-10
No files found.
dlls/d3d9/volume.c
View file @
c2cf1935
...
@@ -94,21 +94,24 @@ static ULONG WINAPI IDirect3DVolume9Impl_Release(LPDIRECT3DVOLUME9 iface) {
...
@@ -94,21 +94,24 @@ static ULONG WINAPI IDirect3DVolume9Impl_Release(LPDIRECT3DVOLUME9 iface) {
}
}
/* IDirect3DVolume9 Interface follow: */
/* IDirect3DVolume9 Interface follow: */
static
HRESULT
WINAPI
IDirect3DVolume9Impl_GetDevice
(
LPDIRECT3DVOLUME9
iface
,
IDirect3DDevice9
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DVolume9Impl_GetDevice
(
IDirect3DVolume9
*
iface
,
IDirect3DDevice9
**
device
)
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
IWineD3DDevice
*
myDevice
=
NULL
;
IDirect3DResource9
*
resource
;
HRESULT
hr
;
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
ppD
evice
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
d
evice
);
wined3d_mutex_lock
(
);
hr
=
IUnknown_QueryInterface
(
This
->
forwardReference
,
&
IID_IDirect3DResource9
,
(
void
**
)
&
resource
);
if
(
SUCCEEDED
(
hr
))
IWineD3DVolume_GetDevice
(
This
->
wineD3DVolume
,
&
myDevice
);
{
IWineD3DDevice_GetParent
(
myDevice
,
(
IUnknown
**
)
ppD
evice
);
hr
=
IDirect3DResource9_GetDevice
(
resource
,
d
evice
);
IWineD3DDevice_Release
(
myDevi
ce
);
IDirect3DResource9_Release
(
resour
ce
);
wined3d_mutex_unlock
();
TRACE
(
"Returning device %p.
\n
"
,
*
device
);
}
return
D3D_OK
;
return
hr
;
}
}
static
HRESULT
WINAPI
IDirect3DVolume9Impl_SetPrivateData
(
LPDIRECT3DVOLUME9
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVolume9Impl_SetPrivateData
(
LPDIRECT3DVOLUME9
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
...
...
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