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
fc5f9d47
Commit
fc5f9d47
authored
Aug 27, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make stateblock_init_default_state() work with a wined3d_state structure instead.
parent
cc85c6af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
device.c
dlls/wined3d/device.c
+2
-2
stateblock.c
dlls/wined3d/stateblock.c
+2
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
fc5f9d47
...
...
@@ -1169,7 +1169,7 @@ HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device,
/* Set up some starting GL setup */
/* Setup all the devices defaults */
state
block_init_default_state
(
device
->
stateBlock
);
state
_init_default
(
&
device
->
stateBlock
->
state
,
device
);
context
=
context_acquire
(
device
,
swapchain
->
front_buffer
);
...
...
@@ -5216,7 +5216,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
TRACE
(
"Created stateblock %p.
\n
"
,
device
->
stateBlock
);
device
->
update_state
=
&
device
->
stateBlock
->
state
;
state
block_init_default_state
(
device
->
stateBlock
);
state
_init_default
(
&
device
->
stateBlock
->
state
,
device
);
}
else
{
...
...
dlls/wined3d/stateblock.c
View file @
fc5f9d47
...
...
@@ -1168,11 +1168,9 @@ void CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblock)
TRACE
(
"Applied stateblock %p.
\n
"
,
stateblock
);
}
void
state
block_init_default_state
(
struct
wined3d_stateblock
*
stateblock
)
void
state
_init_default
(
struct
wined3d_state
*
state
,
struct
wined3d_device
*
device
)
{
struct
wined3d_device
*
device
=
stateblock
->
device
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
struct
wined3d_state
*
state
=
&
stateblock
->
state
;
union
{
struct
wined3d_line_pattern
lp
;
...
...
@@ -1193,7 +1191,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
}}};
TRACE
(
"state
block %p.
\n
"
,
stateblock
);
TRACE
(
"state
%p, device %p.
\n
"
,
state
,
device
);
/* Set some of the defaults for lights, transforms etc */
state
->
transforms
[
WINED3D_TS_PROJECTION
]
=
identity
;
...
...
dlls/wined3d/wined3d_private.h
View file @
fc5f9d47
...
...
@@ -2453,8 +2453,8 @@ struct wined3d_stateblock
};
void
stateblock_init_contained_states
(
struct
wined3d_stateblock
*
stateblock
)
DECLSPEC_HIDDEN
;
void
stateblock_init_default_state
(
struct
wined3d_stateblock
*
stateblock
)
DECLSPEC_HIDDEN
;
void
state_init_default
(
struct
wined3d_state
*
state
,
struct
wined3d_device
*
device
)
DECLSPEC_HIDDEN
;
void
state_unbind_resources
(
struct
wined3d_state
*
state
)
DECLSPEC_HIDDEN
;
/* Direct3D terminology with little modifications. We do not have an issued state
...
...
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