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
d9051bbe
Commit
d9051bbe
authored
Jan 13, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Only check dwFlags if we actually have a D3DLIGHT2 structure in d3d_light_SetLight().
parent
d210b875
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
light.c
dlls/ddraw/light.c
+1
-1
No files found.
dlls/ddraw/light.c
View file @
d9051bbe
...
...
@@ -210,7 +210,7 @@ static HRESULT WINAPI d3d_light_SetLight(IDirect3DLight *iface, D3DLIGHT *data)
/* Translate D3DLIGHT2 structure to D3DLIGHT7. */
light7
->
dltType
=
data
->
dltType
;
light7
->
dcvDiffuse
=
data
->
dcvColor
;
if
(
((
D3DLIGHT2
*
)
data
)
->
dwFlags
&
D3DLIGHT_NO_SPECULAR
)
if
(
data
->
dwSize
>=
sizeof
(
D3DLIGHT2
)
&&
(((
D3DLIGHT2
*
)
data
)
->
dwFlags
&
D3DLIGHT_NO_SPECULAR
)
)
light7
->
dcvSpecular
=
data
->
dcvColor
;
else
light7
->
dcvSpecular
=
*
(
const
D3DCOLORVALUE
*
)
zero_value
;
...
...
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