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
b1d6d47c
Commit
b1d6d47c
authored
Sep 25, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the wined3d creation flags for NO3D adapters as well.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
33d182dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
directx.c
dlls/wined3d/directx.c
+11
-2
No files found.
dlls/wined3d/directx.c
View file @
b1d6d47c
...
...
@@ -2463,7 +2463,14 @@ static const struct wined3d_adapter_ops wined3d_adapter_no3d_ops =
wined3d_adapter_no3d_create_context
,
};
static
BOOL
wined3d_adapter_no3d_init
(
struct
wined3d_adapter
*
adapter
)
static
void
wined3d_adapter_no3d_init_d3d_info
(
struct
wined3d_adapter
*
adapter
,
DWORD
wined3d_creation_flags
)
{
struct
wined3d_d3d_info
*
d3d_info
=
&
adapter
->
d3d_info
;
d3d_info
->
wined3d_creation_flags
=
wined3d_creation_flags
;
}
static
BOOL
wined3d_adapter_no3d_init
(
struct
wined3d_adapter
*
adapter
,
DWORD
wined3d_creation_flags
)
{
static
const
struct
wined3d_gpu_description
gpu_description
=
{
...
...
@@ -2485,6 +2492,8 @@ static BOOL wined3d_adapter_no3d_init(struct wined3d_adapter *adapter)
adapter
->
shader_backend
=
&
none_shader_backend
;
adapter
->
adapter_ops
=
&
wined3d_adapter_no3d_ops
;
wined3d_adapter_no3d_init_d3d_info
(
adapter
,
wined3d_creation_flags
);
return
TRUE
;
}
...
...
@@ -2510,7 +2519,7 @@ static BOOL wined3d_adapter_init(struct wined3d_adapter *adapter, unsigned int o
adapter
->
formats
=
NULL
;
if
(
wined3d_creation_flags
&
WINED3D_NO3D
)
return
wined3d_adapter_no3d_init
(
adapter
);
return
wined3d_adapter_no3d_init
(
adapter
,
wined3d_creation_flags
);
return
wined3d_adapter_gl_init
(
adapter
,
wined3d_creation_flags
);
}
...
...
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