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
2b211cab
Commit
2b211cab
authored
Sep 09, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Implement d3d11_rendertarget_view_GetDevice().
parent
9a0d5646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
d3d11_private.h
dlls/d3d11/d3d11_private.h
+1
-1
view.c
dlls/d3d11/view.c
+10
-6
No files found.
dlls/d3d11/d3d11_private.h
View file @
2b211cab
...
...
@@ -181,7 +181,7 @@ struct d3d_rendertarget_view
struct
wined3d_rendertarget_view
*
wined3d_view
;
D3D11_RENDER_TARGET_VIEW_DESC
desc
;
ID3D11Resource
*
resource
;
ID3D1
0Device1
*
device
;
ID3D1
1Device
*
device
;
};
HRESULT
d3d_rendertarget_view_create
(
struct
d3d_device
*
device
,
ID3D11Resource
*
resource
,
...
...
dlls/d3d11/view.c
View file @
2b211cab
...
...
@@ -827,7 +827,7 @@ static ULONG STDMETHODCALLTYPE d3d11_rendertarget_view_Release(ID3D11RenderTarge
wined3d_mutex_lock
();
wined3d_rendertarget_view_decref
(
view
->
wined3d_view
);
ID3D11Resource_Release
(
view
->
resource
);
ID3D1
0Device1
_Release
(
view
->
device
);
ID3D1
1Device
_Release
(
view
->
device
);
wined3d_private_store_cleanup
(
&
view
->
private_store
);
wined3d_mutex_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
view
);
...
...
@@ -839,7 +839,12 @@ static ULONG STDMETHODCALLTYPE d3d11_rendertarget_view_Release(ID3D11RenderTarge
static
void
STDMETHODCALLTYPE
d3d11_rendertarget_view_GetDevice
(
ID3D11RenderTargetView
*
iface
,
ID3D11Device
**
device
)
{
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
);
struct
d3d_rendertarget_view
*
view
=
impl_from_ID3D11RenderTargetView
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
*
device
=
view
->
device
;
ID3D11Device_AddRef
(
*
device
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_rendertarget_view_GetPrivateData
(
ID3D11RenderTargetView
*
iface
,
...
...
@@ -955,8 +960,7 @@ static void STDMETHODCALLTYPE d3d10_rendertarget_view_GetDevice(ID3D10RenderTarg
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
*
device
=
(
ID3D10Device
*
)
view
->
device
;
ID3D10Device_AddRef
(
*
device
);
ID3D11Device_QueryInterface
(
view
->
device
,
&
IID_ID3D10Device
,
(
void
**
)
device
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetPrivateData
(
ID3D10RenderTargetView
*
iface
,
...
...
@@ -1137,8 +1141,8 @@ static HRESULT d3d_rendertarget_view_init(struct d3d_rendertarget_view *view, st
wined3d_mutex_unlock
();
view
->
resource
=
resource
;
ID3D11Resource_AddRef
(
resource
);
view
->
device
=
&
device
->
ID3D1
0Device1
_iface
;
ID3D1
0Device1
_AddRef
(
view
->
device
);
view
->
device
=
&
device
->
ID3D1
1Device
_iface
;
ID3D1
1Device
_AddRef
(
view
->
device
);
return
S_OK
;
}
...
...
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