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
b16dbf46
Commit
b16dbf46
authored
Jun 17, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Mask texture stage state arguments with WINED3DTA_SELECTMASK when comparing them.
parent
9f8083c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
utils.c
dlls/wined3d/utils.c
+6
-3
No files found.
dlls/wined3d/utils.c
View file @
b16dbf46
...
...
@@ -834,9 +834,12 @@ static BOOL is_invalid_op(IWineD3DDeviceImpl *This, int stage, WINED3DTEXTUREOP
if
(
op
==
WINED3DTOP_DISABLE
)
return
FALSE
;
if
(
This
->
stateBlock
->
textures
[
stage
])
return
FALSE
;
if
(
arg1
==
WINED3DTA_TEXTURE
&&
op
!=
WINED3DTOP_SELECTARG2
)
return
TRUE
;
if
(
arg2
==
WINED3DTA_TEXTURE
&&
op
!=
WINED3DTOP_SELECTARG1
)
return
TRUE
;
if
(
arg3
==
WINED3DTA_TEXTURE
&&
(
op
==
WINED3DTOP_MULTIPLYADD
||
op
==
WINED3DTOP_LERP
))
return
TRUE
;
if
((
arg1
&
WINED3DTA_SELECTMASK
)
==
WINED3DTA_TEXTURE
&&
op
!=
WINED3DTOP_SELECTARG2
)
return
TRUE
;
if
((
arg2
&
WINED3DTA_SELECTMASK
)
==
WINED3DTA_TEXTURE
&&
op
!=
WINED3DTOP_SELECTARG1
)
return
TRUE
;
if
((
arg3
&
WINED3DTA_SELECTMASK
)
==
WINED3DTA_TEXTURE
&&
(
op
==
WINED3DTOP_MULTIPLYADD
||
op
==
WINED3DTOP_LERP
))
return
TRUE
;
return
FALSE
;
}
...
...
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