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
0657e8d8
Commit
0657e8d8
authored
Dec 31, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use slightly nicer loops in device_map_fixed_function_samplers().
parent
e9569d9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
device.c
dlls/wined3d/device.c
+9
-5
No files found.
dlls/wined3d/device.c
View file @
0657e8d8
...
...
@@ -3671,13 +3671,16 @@ static void device_update_fixed_function_usage_map(IWineD3DDeviceImpl *This) {
static
void
device_map_fixed_function_samplers
(
IWineD3DDeviceImpl
*
This
)
{
int
i
,
tex
;
WORD
ffu_map
;
device_update_fixed_function_usage_map
(
This
);
ffu_map
=
This
->
fixed_function_usage_map
;
if
(
This
->
max_ffp_textures
==
This
->
max_ffp_texture_stages
||
This
->
stateBlock
->
lowest_disabled_stage
<=
This
->
max_ffp_textures
)
{
for
(
i
=
0
;
i
<
This
->
stateBlock
->
lowest_disabled_stage
;
++
i
)
{
if
(
!
(
This
->
fixed_function_usage_map
&
(
1
<<
i
)))
continue
;
This
->
stateBlock
->
lowest_disabled_stage
<=
This
->
max_ffp_textures
)
{
for
(
i
=
0
;
ffu_map
;
ffu_map
>>=
1
,
++
i
)
{
if
(
!
(
ffu_map
&
1
))
continue
;
if
(
This
->
texUnitMap
[
i
]
!=
i
)
{
device_map_stage
(
This
,
i
,
i
);
...
...
@@ -3690,8 +3693,9 @@ static void device_map_fixed_function_samplers(IWineD3DDeviceImpl *This) {
/* Now work out the mapping */
tex
=
0
;
for
(
i
=
0
;
i
<
This
->
stateBlock
->
lowest_disabled_stage
;
++
i
)
{
if
(
!
(
This
->
fixed_function_usage_map
&
(
1
<<
i
)))
continue
;
for
(
i
=
0
;
ffu_map
;
ffu_map
>>=
1
,
++
i
)
{
if
(
!
(
ffu_map
&
1
))
continue
;
if
(
This
->
texUnitMap
[
i
]
!=
tex
)
{
device_map_stage
(
This
,
i
,
tex
);
...
...
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