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
f5a26706
Commit
f5a26706
authored
Nov 27, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the device type only once.
parent
d1327bbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
device.c
dlls/wined3d/device.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
f5a26706
...
...
@@ -3882,7 +3882,8 @@ HRESULT CDECL wined3d_device_get_device_caps(const struct wined3d_device *device
{
TRACE
(
"device %p, caps %p.
\n
"
,
device
,
caps
);
return
wined3d_get_device_caps
(
device
->
wined3d
,
device
->
adapter
->
ordinal
,
device
->
devType
,
caps
);
return
wined3d_get_device_caps
(
device
->
wined3d
,
device
->
adapter
->
ordinal
,
device
->
create_parms
.
device_type
,
caps
);
}
HRESULT
CDECL
wined3d_device_get_display_mode
(
const
struct
wined3d_device
*
device
,
...
...
@@ -5938,7 +5939,6 @@ HRESULT device_init(struct wined3d_device *device, struct wined3d *wined3d,
device
->
create_parms
.
focus_window
=
focus_window
;
device
->
create_parms
.
flags
=
flags
;
device
->
devType
=
device_type
;
for
(
i
=
0
;
i
<
PATCHMAP_SIZE
;
++
i
)
list_init
(
&
device
->
patches
[
i
]);
select_shader_mode
(
&
adapter
->
gl_info
,
&
device
->
ps_selected_mode
,
&
device
->
vs_selected_mode
);
...
...
dlls/wined3d/wined3d_private.h
View file @
f5a26706
...
...
@@ -1705,7 +1705,6 @@ struct wined3d_device
/* Internal use fields */
struct
wined3d_device_creation_parameters
create_parms
;
WINED3DDEVTYPE
devType
;
HWND
focus_window
;
struct
wined3d_swapchain
**
swapchains
;
...
...
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