Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8af1c6ee
Commit
8af1c6ee
authored
Oct 25, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Refuse to create a D3D10 wined3d device if it is not supported by the GPU.
parent
5f2c6b3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/dxgi/device.c
+11
-0
No files found.
dlls/dxgi/device.c
View file @
8af1c6ee
...
@@ -353,6 +353,7 @@ HRESULT dxgi_device_init(struct dxgi_device *device, struct dxgi_device_layer *l
...
@@ -353,6 +353,7 @@ HRESULT dxgi_device_init(struct dxgi_device *device, struct dxgi_device_layer *l
struct
wined3d
*
wined3d
;
struct
wined3d
*
wined3d
;
void
*
layer_base
;
void
*
layer_base
;
HRESULT
hr
;
HRESULT
hr
;
WINED3DCAPS
caps
;
device
->
IWineDXGIDevice_iface
.
lpVtbl
=
&
dxgi_device_vtbl
;
device
->
IWineDXGIDevice_iface
.
lpVtbl
=
&
dxgi_device_vtbl
;
device
->
refcount
=
1
;
device
->
refcount
=
1
;
...
@@ -398,6 +399,16 @@ HRESULT dxgi_device_init(struct dxgi_device *device, struct dxgi_device_layer *l
...
@@ -398,6 +399,16 @@ HRESULT dxgi_device_init(struct dxgi_device *device, struct dxgi_device_layer *l
wined3d_device_parent
=
IWineDXGIDeviceParent_get_wined3d_device_parent
(
dxgi_device_parent
);
wined3d_device_parent
=
IWineDXGIDeviceParent_get_wined3d_device_parent
(
dxgi_device_parent
);
FIXME
(
"Ignoring adapter type.
\n
"
);
FIXME
(
"Ignoring adapter type.
\n
"
);
hr
=
wined3d_get_device_caps
(
wined3d
,
adapter_ordinal
,
WINED3DDEVTYPE_HAL
,
&
caps
);
if
(
FAILED
(
hr
)
||
caps
.
VertexShaderVersion
<
4
||
caps
.
PixelShaderVersion
<
4
)
{
WARN
(
"Direct3D 10 is not supported on this GPU with the current shader backend.
\n
"
);
if
(
SUCCEEDED
(
hr
))
hr
=
E_FAIL
;
goto
fail
;
}
EnterCriticalSection
(
&
dxgi_cs
);
EnterCriticalSection
(
&
dxgi_cs
);
hr
=
wined3d_device_create
(
wined3d
,
adapter_ordinal
,
WINED3DDEVTYPE_HAL
,
NULL
,
0
,
4
,
hr
=
wined3d_device_create
(
wined3d
,
adapter_ordinal
,
WINED3DDEVTYPE_HAL
,
NULL
,
0
,
4
,
wined3d_device_parent
,
&
device
->
wined3d_device
);
wined3d_device_parent
,
&
device
->
wined3d_device
);
...
...
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