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
6946de81
Commit
6946de81
authored
May 15, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store a positive 1.0 in the ARB's vertex shader helper constant.
parent
09d74b74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-3
No files found.
dlls/wined3d/arb_program_shader.c
View file @
6946de81
...
...
@@ -3981,7 +3981,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
shader_addline
(
buffer
,
"TEMP TMP_OUT;
\n
"
);
if
(
need_helper_const
(
gl_info
))
{
shader_addline
(
buffer
,
"PARAM helper_const = { 2.0,
-
1.0, %d.0, 0.0 };
\n
"
,
This
->
rel_offset
);
shader_addline
(
buffer
,
"PARAM helper_const = { 2.0, 1.0, %d.0, 0.0 };
\n
"
,
This
->
rel_offset
);
}
if
(
need_mova_const
((
IWineD3DBaseShader
*
)
This
,
gl_info
))
{
shader_addline
(
buffer
,
"PARAM mova_const = { 0.5, 0.0, 2.0, 1.0 };
\n
"
);
...
...
@@ -4032,7 +4032,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
*/
if
(
!
gl_info
->
supported
[
NV_VERTEX_PROGRAM
])
{
shader_addline
(
buffer
,
"MOV result.color.secondary,
-
helper_const.wwwy;
\n
"
);
shader_addline
(
buffer
,
"MOV result.color.secondary, helper_const.wwwy;
\n
"
);
if
(
gl_info
->
quirks
&
WINED3D_QUIRK_SET_TEXCOORD_W
&&
!
device
->
frag_pipe
->
ffp_proj_control
)
{
...
...
@@ -4040,7 +4040,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
for
(
i
=
0
;
i
<
min
(
8
,
MAX_REG_TEXCRD
);
i
++
)
{
if
(
This
->
baseShader
.
reg_maps
.
texcoord_mask
[
i
]
!=
0
&&
This
->
baseShader
.
reg_maps
.
texcoord_mask
[
i
]
!=
WINED3DSP_WRITEMASK_ALL
)
{
shader_addline
(
buffer
,
"MOV result.texcoord[%u].w,
-
helper_const.y;
\n
"
,
i
);
shader_addline
(
buffer
,
"MOV result.texcoord[%u].w, helper_const.y;
\n
"
,
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