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
9f75633a
Commit
9f75633a
authored
Sep 27, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_state structure to apply_lights().
parent
8b54093b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
stateblock.c
dlls/wined3d/stateblock.c
+6
-4
No files found.
dlls/wined3d/stateblock.c
View file @
9f75633a
...
...
@@ -895,13 +895,15 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
return
WINED3D_OK
;
}
static
void
apply_lights
(
IWineD3DDevice
*
device
,
const
IWineD3DStateBlockImpl
*
This
)
static
void
apply_lights
(
IWineD3DDevice
*
device
,
const
struct
wined3d_state
*
state
)
{
UINT
i
;
for
(
i
=
0
;
i
<
LIGHTMAP_SIZE
;
i
++
)
{
for
(
i
=
0
;
i
<
LIGHTMAP_SIZE
;
++
i
)
{
struct
list
*
e
;
LIST_FOR_EACH
(
e
,
&
This
->
state
.
light_map
[
i
])
LIST_FOR_EACH
(
e
,
&
state
->
light_map
[
i
])
{
const
struct
wined3d_light_info
*
light
=
LIST_ENTRY
(
e
,
struct
wined3d_light_info
,
entry
);
...
...
@@ -942,7 +944,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Apply(IWineD3DStateBlock *iface)
This
->
state
.
vs_consts_b
+
This
->
contained_vs_consts_b
[
i
],
1
);
}
apply_lights
(
device
,
This
);
apply_lights
(
device
,
&
This
->
state
);
if
(
This
->
changed
.
pixelShader
)
IWineD3DDevice_SetPixelShader
(
device
,
(
IWineD3DPixelShader
*
)
This
->
state
.
pixel_shader
);
...
...
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