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