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
c562c4c7
Commit
c562c4c7
authored
Jul 07, 2006
by
Jason Green
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix D3DSIO_TEXKILL for GLSL.
parent
7e0e855a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
c562c4c7
...
...
@@ -1364,10 +1364,10 @@ void pshader_glsl_texbem(SHADER_OPCODE_ARG* arg) {
* If any of the first 3 components are < 0, discard this pixel */
void
pshader_glsl_texkill
(
SHADER_OPCODE_ARG
*
arg
)
{
char
src0_str
[
100
],
src0_name
[
50
],
src0
_mask
[
6
];
char
dst_str
[
100
],
dst_name
[
50
],
dst
_mask
[
6
];
shader_glsl_add_param
(
arg
,
arg
->
src
[
0
],
arg
->
src_addr
[
0
],
TRUE
,
src0_name
,
src0_mask
,
src0
_str
);
shader_addline
(
arg
->
buffer
,
"if (
%s.x < 0.0 || %s.y < 0.0 || %s.z < 0.0) discard;
\n
"
,
src0_name
,
src0_name
,
src0
_name
);
shader_glsl_add_param
(
arg
,
arg
->
dst
,
0
,
FALSE
,
dst_name
,
dst_mask
,
dst
_str
);
shader_addline
(
arg
->
buffer
,
"if (
any(lessThan(%s.xyz, vec3(0.0)))) discard;
\n
"
,
dst
_name
);
}
/** Process the D3DSIO_DP2ADD instruction in GLSL.
...
...
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