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
49ad383e
Commit
49ad383e
authored
Feb 13, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement dxgi_factory_SetPrivateData().
parent
70b2fd3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
dxgi_private.h
dlls/dxgi/dxgi_private.h
+1
-0
factory.c
dlls/dxgi/factory.c
+8
-2
No files found.
dlls/dxgi/dxgi_private.h
View file @
49ad383e
...
@@ -88,6 +88,7 @@ struct dxgi_factory
...
@@ -88,6 +88,7 @@ struct dxgi_factory
{
{
IDXGIFactory1
IDXGIFactory1_iface
;
IDXGIFactory1
IDXGIFactory1_iface
;
LONG
refcount
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
struct
wined3d
*
wined3d
;
struct
wined3d
*
wined3d
;
UINT
adapter_count
;
UINT
adapter_count
;
IDXGIAdapter1
**
adapters
;
IDXGIAdapter1
**
adapters
;
...
...
dlls/dxgi/factory.c
View file @
49ad383e
...
@@ -83,6 +83,7 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IDXGIFactory1 *iface)
...
@@ -83,6 +83,7 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IDXGIFactory1 *iface)
EnterCriticalSection
(
&
dxgi_cs
);
EnterCriticalSection
(
&
dxgi_cs
);
wined3d_decref
(
factory
->
wined3d
);
wined3d_decref
(
factory
->
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
LeaveCriticalSection
(
&
dxgi_cs
);
wined3d_private_store_cleanup
(
&
factory
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
factory
);
HeapFree
(
GetProcessHeap
(),
0
,
factory
);
}
}
...
@@ -92,9 +93,11 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IDXGIFactory1 *iface)
...
@@ -92,9 +93,11 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IDXGIFactory1 *iface)
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_SetPrivateData
(
IDXGIFactory1
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_SetPrivateData
(
IDXGIFactory1
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
struct
dxgi_factory
*
factory
=
impl_from_IDXGIFactory1
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
dxgi_set_private_data
(
&
factory
->
private_store
,
guid
,
data_size
,
data
);
}
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_SetPrivateDataInterface
(
IDXGIFactory1
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_SetPrivateDataInterface
(
IDXGIFactory1
*
iface
,
...
@@ -284,12 +287,14 @@ static HRESULT dxgi_factory_init(struct dxgi_factory *factory, BOOL extended)
...
@@ -284,12 +287,14 @@ static HRESULT dxgi_factory_init(struct dxgi_factory *factory, BOOL extended)
factory
->
IDXGIFactory1_iface
.
lpVtbl
=
&
dxgi_factory_vtbl
;
factory
->
IDXGIFactory1_iface
.
lpVtbl
=
&
dxgi_factory_vtbl
;
factory
->
refcount
=
1
;
factory
->
refcount
=
1
;
wined3d_private_store_init
(
&
factory
->
private_store
);
EnterCriticalSection
(
&
dxgi_cs
);
EnterCriticalSection
(
&
dxgi_cs
);
factory
->
wined3d
=
wined3d_create
(
0
);
factory
->
wined3d
=
wined3d_create
(
0
);
if
(
!
factory
->
wined3d
)
if
(
!
factory
->
wined3d
)
{
{
LeaveCriticalSection
(
&
dxgi_cs
);
LeaveCriticalSection
(
&
dxgi_cs
);
wined3d_private_store_cleanup
(
&
factory
->
private_store
);
return
DXGI_ERROR_UNSUPPORTED
;
return
DXGI_ERROR_UNSUPPORTED
;
}
}
...
@@ -346,6 +351,7 @@ fail:
...
@@ -346,6 +351,7 @@ fail:
EnterCriticalSection
(
&
dxgi_cs
);
EnterCriticalSection
(
&
dxgi_cs
);
wined3d_decref
(
factory
->
wined3d
);
wined3d_decref
(
factory
->
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
LeaveCriticalSection
(
&
dxgi_cs
);
wined3d_private_store_cleanup
(
&
factory
->
private_store
);
return
hr
;
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