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
5bc0e91d
Commit
5bc0e91d
authored
Sep 26, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Sep 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't overwrite the position y offset in ARB vertex programs.
parent
e4d5385d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vertexshader.c
dlls/wined3d/vertexshader.c
+5
-4
No files found.
dlls/wined3d/vertexshader.c
View file @
5bc0e91d
...
...
@@ -786,19 +786,20 @@ static VOID IWineD3DVertexShaderImpl_GenerateShader(
if
(
reg_maps
->
fog
)
shader_addline
(
&
buffer
,
"MAX result.fogcoord, TMP_FOG, 0.0;
\n
"
);
shader_addline
(
&
buffer
,
"MOV result.position, TMP_OUT;
\n
"
);
/* Write the final position.
*
* OpenGL coordinates specify the center of the pixel while d3d coords specify
* the corner. The offsets are stored in the 2nd row of the projection matrix,
* the x offset in z and the y offset in w. Add them to the resulting position
*/
shader_addline
(
&
buffer
,
"ADD
result.position
.x, TMP_OUT.x, posFixup.z;
\n
"
);
shader_addline
(
&
buffer
,
"ADD
result.position
.y, TMP_OUT.y, posFixup.w;
\n
"
);
shader_addline
(
&
buffer
,
"ADD
TMP_OUT
.x, TMP_OUT.x, posFixup.z;
\n
"
);
shader_addline
(
&
buffer
,
"ADD
TMP_OUT
.y, TMP_OUT.y, posFixup.w;
\n
"
);
/* Account for any inverted textures (render to texture case) by reversing the y coordinate
* (this is handled in drawPrim() when it sets the MODELVIEW and PROJECTION matrices)
*/
shader_addline
(
&
buffer
,
"MUL result.position.y, TMP_OUT.y, posFixup.y;
\n
"
);
shader_addline
(
&
buffer
,
"MUL TMP_OUT.y, TMP_OUT.y, posFixup.y;
\n
"
);
shader_addline
(
&
buffer
,
"MOV result.position, TMP_OUT;
\n
"
);
shader_addline
(
&
buffer
,
"END
\n\0
"
);
...
...
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