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
23922144
Commit
23922144
authored
Dec 03, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Don't crash and just skip the tests if glX in not available.
parent
ba3054b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
dxgi_main.c
dlls/dxgi/dxgi_main.c
+6
-0
device.c
dlls/dxgi/tests/device.c
+0
-1
No files found.
dlls/dxgi/dxgi_main.c
View file @
23922144
...
...
@@ -97,6 +97,12 @@ HRESULT WINAPI CreateDXGIFactory(REFIID riid, void **factory)
EnterCriticalSection
(
&
dxgi_cs
);
object
->
wined3d
=
WineDirect3DCreate
(
10
,
(
IUnknown
*
)
object
);
if
(
!
object
->
wined3d
)
{
hr
=
DXGI_ERROR_UNSUPPORTED
;
LeaveCriticalSection
(
&
dxgi_cs
);
goto
fail
;
}
object
->
adapter_count
=
IWineD3D_GetAdapterCount
(
object
->
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
...
...
dlls/dxgi/tests/device.c
View file @
23922144
...
...
@@ -33,7 +33,6 @@ static IDXGIDevice *create_device(HMODULE d3d10core)
HRESULT
hr
;
hr
=
CreateDXGIFactory
(
&
IID_IDXGIFactory
,
(
void
*
)
&
factory
);
ok
(
SUCCEEDED
(
hr
),
"CreateDXGIFactory failed, hr %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
cleanup
;
hr
=
IDXGIFactory_EnumAdapters
(
factory
,
0
,
&
adapter
);
...
...
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