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
ba9d80ba
Commit
ba9d80ba
authored
Sep 03, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Implement d3d11_buffer_GetDevice().
parent
c05e8d14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
buffer.c
dlls/d3d11/buffer.c
+11
-8
d3d11_private.h
dlls/d3d11/d3d11_private.h
+1
-1
No files found.
dlls/d3d11/buffer.c
View file @
ba9d80ba
...
...
@@ -71,7 +71,7 @@ static ULONG STDMETHODCALLTYPE d3d11_buffer_AddRef(ID3D11Buffer *iface)
if
(
refcount
==
1
)
{
ID3D1
0Device1
_AddRef
(
buffer
->
device
);
ID3D1
1Device
_AddRef
(
buffer
->
device
);
wined3d_mutex_lock
();
wined3d_buffer_incref
(
buffer
->
wined3d_buffer
);
wined3d_mutex_unlock
();
...
...
@@ -89,14 +89,14 @@ static ULONG STDMETHODCALLTYPE d3d11_buffer_Release(ID3D11Buffer *iface)
if
(
!
refcount
)
{
ID3D1
0Device1
*
device
=
buffer
->
device
;
ID3D1
1Device
*
device
=
buffer
->
device
;
wined3d_mutex_lock
();
wined3d_buffer_decref
(
buffer
->
wined3d_buffer
);
wined3d_mutex_unlock
();
/* Release the device last, it may cause the wined3d device to be
* destroyed. */
ID3D1
0Device1
_Release
(
device
);
ID3D1
1Device
_Release
(
device
);
}
return
refcount
;
...
...
@@ -104,7 +104,11 @@ static ULONG STDMETHODCALLTYPE d3d11_buffer_Release(ID3D11Buffer *iface)
static
void
STDMETHODCALLTYPE
d3d11_buffer_GetDevice
(
ID3D11Buffer
*
iface
,
ID3D11Device
**
device
)
{
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
);
struct
d3d_buffer
*
buffer
=
impl_from_ID3D11Buffer
(
iface
);
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
*
device
=
buffer
->
device
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d11_buffer_GetPrivateData
(
ID3D11Buffer
*
iface
,
...
...
@@ -225,8 +229,7 @@ static void STDMETHODCALLTYPE d3d10_buffer_GetDevice(ID3D10Buffer *iface, ID3D10
TRACE
(
"iface %p, device %p.
\n
"
,
iface
,
device
);
*
device
=
(
ID3D10Device
*
)
buffer
->
device
;
ID3D10Device_AddRef
(
*
device
);
ID3D11Device_QueryInterface
(
buffer
->
device
,
&
IID_ID3D10Device
,
(
void
**
)
device
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_buffer_GetPrivateData
(
ID3D10Buffer
*
iface
,
...
...
@@ -389,8 +392,8 @@ HRESULT d3d_buffer_init(struct d3d_buffer *buffer, struct d3d_device *device,
}
wined3d_mutex_unlock
();
buffer
->
device
=
&
device
->
ID3D1
0Device1
_iface
;
ID3D1
0Device1
_AddRef
(
buffer
->
device
);
buffer
->
device
=
&
device
->
ID3D1
1Device
_iface
;
ID3D1
1Device
_AddRef
(
buffer
->
device
);
return
S_OK
;
}
dlls/d3d11/d3d11_private.h
View file @
ba9d80ba
...
...
@@ -142,7 +142,7 @@ struct d3d_buffer
struct
wined3d_private_store
private_store
;
struct
wined3d_buffer
*
wined3d_buffer
;
ID3D1
0Device1
*
device
;
ID3D1
1Device
*
device
;
};
HRESULT
d3d_buffer_init
(
struct
d3d_buffer
*
buffer
,
struct
d3d_device
*
device
,
...
...
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