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
e9f9c150
Commit
e9f9c150
authored
Jan 28, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Store IWineDXGIAdapter pointers in the factory.
parent
127e9bc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
dxgi_private.h
dlls/dxgi/dxgi_private.h
+1
-1
factory.c
dlls/dxgi/factory.c
+5
-5
No files found.
dlls/dxgi/dxgi_private.h
View file @
e9f9c150
...
...
@@ -82,7 +82,7 @@ struct dxgi_factory
LONG
refcount
;
struct
wined3d
*
wined3d
;
UINT
adapter_count
;
IDXGIAdapter
**
adapters
;
I
Wine
DXGIAdapter
**
adapters
;
};
HRESULT
dxgi_factory_init
(
struct
dxgi_factory
*
factory
)
DECLSPEC_HIDDEN
;
...
...
dlls/dxgi/factory.c
View file @
e9f9c150
...
...
@@ -74,7 +74,7 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IWineDXGIFactory *iface)
for
(
i
=
0
;
i
<
This
->
adapter_count
;
++
i
)
{
IDXGIAdapter_Release
(
This
->
adapters
[
i
]);
I
Wine
DXGIAdapter_Release
(
This
->
adapters
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
adapters
);
...
...
@@ -139,7 +139,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_EnumAdapters(IWineDXGIFactory *ifa
return
DXGI_ERROR_NOT_FOUND
;
}
*
adapter
=
This
->
adapters
[
adapter_idx
];
*
adapter
=
(
IDXGIAdapter
*
)
This
->
adapters
[
adapter_idx
];
IDXGIAdapter_AddRef
(
*
adapter
);
TRACE
(
"Returning adapter %p
\n
"
,
*
adapter
);
...
...
@@ -335,7 +335,7 @@ HRESULT dxgi_factory_init(struct dxgi_factory *factory)
for
(
j
=
0
;
j
<
i
;
++
j
)
{
IDXGIAdapter_Release
(
factory
->
adapters
[
j
]);
I
Wine
DXGIAdapter_Release
(
factory
->
adapters
[
j
]);
}
hr
=
E_OUTOFMEMORY
;
goto
fail
;
...
...
@@ -351,12 +351,12 @@ HRESULT dxgi_factory_init(struct dxgi_factory *factory)
HeapFree
(
GetProcessHeap
(),
0
,
adapter
);
for
(
j
=
0
;
j
<
i
;
++
j
)
{
IDXGIAdapter_Release
(
factory
->
adapters
[
j
]);
I
Wine
DXGIAdapter_Release
(
factory
->
adapters
[
j
]);
}
goto
fail
;
}
factory
->
adapters
[
i
]
=
(
IDXGIAdapter
*
)
adapter
;
factory
->
adapters
[
i
]
=
&
adapter
->
IWineDXGIAdapter_iface
;
}
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