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
47708a77
Commit
47708a77
authored
Jun 27, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check more thoroughly if a stage references a texture.
parent
d2d6952f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
device.c
dlls/wined3d/device.c
+32
-1
No files found.
dlls/wined3d/device.c
View file @
47708a77
...
...
@@ -3222,7 +3222,38 @@ static void device_update_fixed_function_usage_map(IWineD3DDeviceImpl *This) {
int
i
;
for
(
i
=
0
;
i
<
MAX_TEXTURES
;
++
i
)
{
This
->
fixed_function_usage_map
[
i
]
=
This
->
stateBlock
->
textures
[
i
]
?
TRUE
:
FALSE
;
WINED3DTEXTUREOP
color_op
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_COLOROP
];
WINED3DTEXTUREOP
alpha_op
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAOP
];
DWORD
color_arg1
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_COLORARG1
]
&
WINED3DTA_SELECTMASK
;
DWORD
color_arg2
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_COLORARG2
]
&
WINED3DTA_SELECTMASK
;
DWORD
color_arg3
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_COLORARG0
]
&
WINED3DTA_SELECTMASK
;
DWORD
alpha_arg1
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG1
]
&
WINED3DTA_SELECTMASK
;
DWORD
alpha_arg2
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG2
]
&
WINED3DTA_SELECTMASK
;
DWORD
alpha_arg3
=
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG0
]
&
WINED3DTA_SELECTMASK
;
if
(
color_op
==
WINED3DTOP_DISABLE
)
{
/* Not used, and disable higher stages */
while
(
i
<
MAX_TEXTURES
)
{
This
->
fixed_function_usage_map
[
i
]
=
FALSE
;
++
i
;
}
break
;
}
if
(((
color_arg1
==
WINED3DTA_TEXTURE
)
&&
color_op
!=
WINED3DTOP_SELECTARG2
)
||
((
color_arg2
==
WINED3DTA_TEXTURE
)
&&
color_op
!=
WINED3DTOP_SELECTARG1
)
||
((
color_arg3
==
WINED3DTA_TEXTURE
)
&&
(
color_op
==
WINED3DTOP_MULTIPLYADD
||
color_op
==
WINED3DTOP_LERP
))
||
((
alpha_arg1
==
WINED3DTA_TEXTURE
)
&&
alpha_op
!=
WINED3DTOP_SELECTARG2
)
||
((
alpha_arg2
==
WINED3DTA_TEXTURE
)
&&
alpha_op
!=
WINED3DTOP_SELECTARG1
)
||
((
alpha_arg3
==
WINED3DTA_TEXTURE
)
&&
(
alpha_op
==
WINED3DTOP_MULTIPLYADD
||
alpha_op
==
WINED3DTOP_LERP
)))
{
This
->
fixed_function_usage_map
[
i
]
=
TRUE
;
}
else
{
This
->
fixed_function_usage_map
[
i
]
=
FALSE
;
}
if
((
color_op
==
WINED3DTOP_BUMPENVMAP
||
color_op
==
WINED3DTOP_BUMPENVMAPLUMINANCE
)
&&
i
<
MAX_TEXTURES
-
1
)
{
This
->
fixed_function_usage_map
[
i
+
1
]
=
TRUE
;
}
}
}
...
...
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