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
5daf08f2
Commit
5daf08f2
authored
Jun 02, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove unnecessary test for 0 (Coverity).
parent
93515965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
shader.c
dlls/wined3d/shader.c
+17
-20
No files found.
dlls/wined3d/shader.c
View file @
5daf08f2
...
...
@@ -1569,26 +1569,23 @@ void shader_dump_src_param(const struct wined3d_shader_src_param *param,
shader_dump_register
(
&
param
->
reg
,
shader_version
);
if
(
src_modifier
)
{
switch
(
src_modifier
)
{
case
WINED3DSPSM_NONE
:
break
;
case
WINED3DSPSM_NEG
:
break
;
case
WINED3DSPSM_NOT
:
break
;
case
WINED3DSPSM_BIAS
:
TRACE
(
"_bias"
);
break
;
case
WINED3DSPSM_BIASNEG
:
TRACE
(
"_bias"
);
break
;
case
WINED3DSPSM_SIGN
:
TRACE
(
"_bx2"
);
break
;
case
WINED3DSPSM_SIGNNEG
:
TRACE
(
"_bx2"
);
break
;
case
WINED3DSPSM_COMP
:
break
;
case
WINED3DSPSM_X2
:
TRACE
(
"_x2"
);
break
;
case
WINED3DSPSM_X2NEG
:
TRACE
(
"_x2"
);
break
;
case
WINED3DSPSM_DZ
:
TRACE
(
"_dz"
);
break
;
case
WINED3DSPSM_DW
:
TRACE
(
"_dw"
);
break
;
case
WINED3DSPSM_ABSNEG
:
TRACE
(
")"
);
break
;
case
WINED3DSPSM_ABS
:
TRACE
(
")"
);
break
;
default:
TRACE
(
"_unknown_modifier(%#x)"
,
src_modifier
);
}
switch
(
src_modifier
)
{
case
WINED3DSPSM_NONE
:
break
;
case
WINED3DSPSM_NEG
:
break
;
case
WINED3DSPSM_NOT
:
break
;
case
WINED3DSPSM_BIAS
:
TRACE
(
"_bias"
);
break
;
case
WINED3DSPSM_BIASNEG
:
TRACE
(
"_bias"
);
break
;
case
WINED3DSPSM_SIGN
:
TRACE
(
"_bx2"
);
break
;
case
WINED3DSPSM_SIGNNEG
:
TRACE
(
"_bx2"
);
break
;
case
WINED3DSPSM_COMP
:
break
;
case
WINED3DSPSM_X2
:
TRACE
(
"_x2"
);
break
;
case
WINED3DSPSM_X2NEG
:
TRACE
(
"_x2"
);
break
;
case
WINED3DSPSM_DZ
:
TRACE
(
"_dz"
);
break
;
case
WINED3DSPSM_DW
:
TRACE
(
"_dw"
);
break
;
case
WINED3DSPSM_ABSNEG
:
TRACE
(
")"
);
break
;
case
WINED3DSPSM_ABS
:
TRACE
(
")"
);
break
;
default:
TRACE
(
"_unknown_modifier(%#x)"
,
src_modifier
);
}
if
(
swizzle
!=
WINED3DSP_NOSWIZZLE
)
...
...
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