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
af1bc3d9
Commit
af1bc3d9
authored
Dec 04, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove a redundant condition in shader_get_opcode().
parent
a2febdd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
baseshader.c
dlls/wined3d/baseshader.c
+4
-3
No files found.
dlls/wined3d/baseshader.c
View file @
af1bc3d9
...
...
@@ -87,9 +87,10 @@ const SHADER_OPCODE* shader_get_opcode(
/** TODO: use dichotomic search */
while
(
NULL
!=
shader_ins
[
i
].
name
)
{
if
(((
code
&
WINED3DSI_OPCODE_MASK
)
==
shader_ins
[
i
].
opcode
)
&&
(((
hex_version
>=
shader_ins
[
i
].
min_version
)
&&
(
hex_version
<=
shader_ins
[
i
].
max_version
))
||
((
shader_ins
[
i
].
min_version
==
0
)
&&
(
shader_ins
[
i
].
max_version
==
0
))))
{
if
((
code
&
WINED3DSI_OPCODE_MASK
)
==
shader_ins
[
i
].
opcode
&&
hex_version
>=
shader_ins
[
i
].
min_version
&&
(
!
shader_ins
[
i
].
max_version
||
hex_version
<=
shader_ins
[
i
].
max_version
))
{
return
&
shader_ins
[
i
];
}
++
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