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
b41a3ad2
Commit
b41a3ad2
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 AddLight properly activates lights.
parent
ca7e56cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
viewport.c
dlls/ddraw/viewport.c
+7
-3
No files found.
dlls/ddraw/viewport.c
View file @
b41a3ad2
...
...
@@ -672,8 +672,8 @@ static HRESULT WINAPI d3d_viewport_Clear(IDirect3DViewport3 *iface,
This
->
background
->
mat
.
u
.
diffuse
.
u4
.
a
);
}
/* Need to temporarily activate
viewport to clear it. Previously active one will be restored
afterwards. */
/* Need to temporarily activate
the viewport to clear it. The previously
* active one will be restored
afterwards. */
viewport_activate
(
This
,
TRUE
);
hr
=
IDirect3DDevice7_Clear
(
&
This
->
active_device
->
IDirect3DDevice7_iface
,
rect_count
,
rects
,
...
...
@@ -740,8 +740,12 @@ static HRESULT WINAPI d3d_viewport_AddLight(IDirect3DViewport3 *iface, IDirect3D
light_impl
->
active_viewport
=
This
;
/* If active, activate the light */
if
(
This
->
active_device
)
if
(
This
->
active_device
&&
light_impl
->
light
.
dwFlags
&
D3DLIGHT_ACTIVE
)
{
/* Disable the flag so that light_activate actually does its job. */
light_impl
->
light
.
dwFlags
&=
~
D3DLIGHT_ACTIVE
;
light_activate
(
light_impl
);
}
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