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
f30248f3
Commit
f30248f3
authored
Jun 28, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use wined3d_bit_scan() in viewport_alloc_active_light_index().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e867d986
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
viewport.c
dlls/ddraw/viewport.c
+3
-8
No files found.
dlls/ddraw/viewport.c
View file @
f30248f3
...
@@ -152,15 +152,10 @@ void viewport_alloc_active_light_index(struct d3d_light *light)
...
@@ -152,15 +152,10 @@ void viewport_alloc_active_light_index(struct d3d_light *light)
}
}
}
}
}
}
map
=
vp
->
map_lights
;
assert
(
vp
->
active_lights_count
<
DDRAW_MAX_ACTIVE_LIGHTS
&&
map
!=
~
0u
);
i
=
0
;
map
=
~
vp
->
map_lights
;
while
(
map
&
1
)
assert
(
vp
->
active_lights_count
<
DDRAW_MAX_ACTIVE_LIGHTS
&&
map
);
{
i
=
wined3d_bit_scan
(
&
map
);
map
>>=
1
;
++
i
;
}
light
->
active_light_index
=
i
+
1
;
light
->
active_light_index
=
i
+
1
;
++
vp
->
active_lights_count
;
++
vp
->
active_lights_count
;
vp
->
map_lights
|=
1u
<<
i
;
vp
->
map_lights
|=
1u
<<
i
;
...
...
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