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
56d7e3b9
Commit
56d7e3b9
authored
Apr 29, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Don't return an error when setting a 0 material handle in d3d_device3_SetLightState().
parent
77da84b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
device.c
dlls/ddraw/device.c
+11
-8
No files found.
dlls/ddraw/device.c
View file @
56d7e3b9
...
...
@@ -2945,16 +2945,19 @@ static HRESULT WINAPI d3d_device3_SetLightState(IDirect3DDevice3 *iface,
wined3d_mutex_lock
();
if
(
state
==
D3DLIGHTSTATE_MATERIAL
)
{
struct
d3d_material
*
m
=
ddraw_get_object
(
&
device
->
handle_table
,
value
-
1
,
DDRAW_HANDLE_MATERIAL
);
if
(
!
m
)
if
(
value
)
{
WARN
(
"Invalid material handle.
\n
"
);
wined3d_mutex_unlock
();
return
DDERR_INVALIDPARAMS
;
}
struct
d3d_material
*
m
;
TRACE
(
" activating material %p.
\n
"
,
m
);
material_activate
(
m
);
if
(
!
(
m
=
ddraw_get_object
(
&
device
->
handle_table
,
value
-
1
,
DDRAW_HANDLE_MATERIAL
)))
{
WARN
(
"Invalid material handle.
\n
"
);
wined3d_mutex_unlock
();
return
DDERR_INVALIDPARAMS
;
}
material_activate
(
m
);
}
device
->
material
=
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