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
bbc7b5ac
Commit
bbc7b5ac
authored
Oct 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Try to create a software adapter when no regular adapters are found as well.
parent
5ef7a8c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
device.c
dlls/d3d10core/tests/device.c
+7
-6
No files found.
dlls/d3d10core/tests/device.c
View file @
bbc7b5ac
...
...
@@ -35,18 +35,19 @@ static ID3D10Device *create_device(void)
if
(
FAILED
(
hr
))
goto
cleanup
;
hr
=
IDXGIFactory_EnumAdapters
(
factory
,
0
,
&
adapter
);
ok
(
SUCCEEDED
(
hr
)
||
hr
==
DXGI_ERROR_NOT_FOUND
,
/* Some VMware and VirtualBox */
"EnumAdapters failed, hr %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
cleanup
;
ok
(
SUCCEEDED
(
hr
)
||
hr
==
DXGI_ERROR_NOT_FOUND
,
/* Some VMware and VirtualBox */
"EnumAdapters failed, hr %#x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3D10CoreCreateDevice
(
factory
,
adapter
,
0
,
NULL
,
&
device
);
}
if
(
FAILED
(
hr
))
{
HMODULE
d3d10ref
;
trace
(
"Failed to create a HW device, trying REF
\n
"
);
IDXGIAdapter_Release
(
adapter
);
if
(
adapter
)
IDXGIAdapter_Release
(
adapter
);
adapter
=
NULL
;
d3d10ref
=
LoadLibraryA
(
"d3d10ref.dll"
);
...
...
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