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
98b29119
Commit
98b29119
authored
Nov 05, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the conditionals in shader_glsl_compare.
parent
ed937c6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-7
No files found.
dlls/wined3d/glsl_shader.c
View file @
98b29119
...
...
@@ -1563,17 +1563,17 @@ void shader_glsl_compare(SHADER_OPCODE_ARG* arg) {
shader_addline
(
arg
->
buffer
,
"vec%d(%s(%s, %s)));
\n
"
,
mask_size
,
compare
,
src0_param
.
param_str
,
src1_param
.
param_str
);
}
else
{
const
char
*
compare
;
switch
(
arg
->
opcode
->
opcode
)
{
case
WINED3DSIO_SLT
:
compare
=
"<"
;
break
;
case
WINED3DSIO_SGE
:
compare
=
">="
;
break
;
default:
compare
=
""
;
case
WINED3DSIO_SLT
:
shader_addline
(
arg
->
buffer
,
"step(%s, %s));
\n
"
,
src0_param
.
param_str
,
src1_param
.
param_str
);
break
;
case
WINED3DSIO_SGE
:
shader_addline
(
arg
->
buffer
,
"step(%s, %s));
\n
"
,
src1_param
.
param_str
,
src0_param
.
param_str
);
break
;
default:
FIXME
(
"Can't handle opcode %s
\n
"
,
arg
->
opcode
->
name
);
}
shader_addline
(
arg
->
buffer
,
"(%s %s %s) ? 1.0 : 0.0);
\n
"
,
src0_param
.
param_str
,
compare
,
src1_param
.
param_str
);
}
}
...
...
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