Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8068fc3b
Commit
8068fc3b
authored
Jul 09, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clamp texcoord output between 0 and 1.
parent
e9de563e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
8068fc3b
...
...
@@ -640,7 +640,7 @@ void pshader_hw_texcoord(SHADER_OPCODE_ARG* arg) {
pshader_get_write_mask
(
dst
,
tmp
);
if
(
hex_version
!=
D3DPS_VERSION
(
1
,
4
))
{
DWORD
reg
=
dst
&
D3DSP_REGNUM_MASK
;
shader_addline
(
buffer
,
"MOV T%lu%s, fragment.texcoord[%lu];
\n
"
,
reg
,
tmp
,
reg
);
shader_addline
(
buffer
,
"MOV
_SAT
T%lu%s, fragment.texcoord[%lu];
\n
"
,
reg
,
tmp
,
reg
);
}
else
{
DWORD
reg1
=
dst
&
D3DSP_REGNUM_MASK
;
DWORD
reg2
=
src
[
0
]
&
D3DSP_REGNUM_MASK
;
...
...
dlls/wined3d/glsl_shader.c
View file @
8068fc3b
...
...
@@ -1245,7 +1245,7 @@ void pshader_glsl_texcoord(SHADER_OPCODE_ARG* arg) {
if
(
hex_version
!=
D3DPS_VERSION
(
1
,
4
))
{
DWORD
reg
=
arg
->
dst
&
D3DSP_REGNUM_MASK
;
shader_addline
(
buffer
,
"%s =
gl_TexCoord[%lu]
;
\n
"
,
tmpReg
,
reg
);
shader_addline
(
buffer
,
"%s =
clamp(gl_TexCoord[%lu], 0.0, 1.0)
;
\n
"
,
tmpReg
,
reg
);
}
else
{
DWORD
reg2
=
arg
->
src
[
0
]
&
D3DSP_REGNUM_MASK
;
shader_addline
(
buffer
,
"%s = gl_TexCoord[%lu]%s;
\n
"
,
tmpStr
,
reg2
,
tmpMask
);
...
...
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