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
e8aba715
Commit
e8aba715
authored
Mar 30, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Make sure to activate / deactivate the light on D3DLIGHT_ACTIVE flag changes.
parent
b41a3ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
light.c
dlls/ddraw/light.c
+5
-1
No files found.
dlls/ddraw/light.c
View file @
e8aba715
...
...
@@ -201,7 +201,11 @@ static HRESULT WINAPI d3d_light_SetLight(IDirect3DLight *iface, D3DLIGHT *data)
wined3d_mutex_lock
();
memcpy
(
&
light
->
light
,
data
,
sizeof
(
D3DLIGHT
));
if
(
flags
&
D3DLIGHT_ACTIVE
)
if
(
!
(
light
->
light
.
dwFlags
&
D3DLIGHT_ACTIVE
)
&&
flags
&
D3DLIGHT_ACTIVE
)
light_activate
(
light
);
else
if
(
light
->
light
.
dwFlags
&
D3DLIGHT_ACTIVE
&&
!
(
flags
&
D3DLIGHT_ACTIVE
))
light_deactivate
(
light
);
else
if
(
flags
&
D3DLIGHT_ACTIVE
)
light_update
(
light
);
light
->
light
.
dwFlags
=
flags
;
wined3d_mutex_unlock
();
...
...
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