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
96b48191
Commit
96b48191
authored
Feb 06, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only copy POSITION0 output semantics into gl_Position.
parent
1aa50154
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
96b48191
...
...
@@ -4377,7 +4377,7 @@ static GLuint generate_param_reorder_function(struct wined3d_shader_buffer *buff
shader_addline
(
buffer
,
"gl_FrontSecondaryColor%s = vs_out[%u]%s;
\n
"
,
reg_mask
,
i
,
reg_mask
);
}
else
if
(
shader_match_semantic
(
semantic_name
,
WINED3D_DECL_USAGE_POSITION
))
else
if
(
shader_match_semantic
(
semantic_name
,
WINED3D_DECL_USAGE_POSITION
)
&&
!
semantic_idx
)
{
shader_addline
(
buffer
,
"gl_Position%s = vs_out[%u]%s;
\n
"
,
reg_mask
,
i
,
reg_mask
);
...
...
@@ -4419,9 +4419,10 @@ static GLuint generate_param_reorder_function(struct wined3d_shader_buffer *buff
if
(
!
(
map
&
1
))
continue
;
semantic_name
=
output_signature
[
i
].
semantic_name
;
semantic_idx
=
output_signature
[
i
].
semantic_idx
;
shader_glsl_write_mask_to_str
(
output_signature
[
i
].
mask
,
reg_mask
);
if
(
shader_match_semantic
(
semantic_name
,
WINED3D_DECL_USAGE_POSITION
))
if
(
shader_match_semantic
(
semantic_name
,
WINED3D_DECL_USAGE_POSITION
)
&&
!
semantic_idx
)
{
shader_addline
(
buffer
,
"gl_Position%s = vs_out[%u]%s;
\n
"
,
reg_mask
,
i
,
reg_mask
);
...
...
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