Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1cc75303
Commit
1cc75303
authored
Dec 05, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Ignore unused attributes when generating the swizzle array.
parent
f4d24492
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+4
-1
No files found.
dlls/wined3d/vertexshader.c
View file @
1cc75303
...
...
@@ -296,6 +296,9 @@ static inline void find_swizzled_attribs(IWineD3DVertexDeclaration *declaration,
for
(
i
=
0
;
i
<
decl
->
num_swizzled_attribs
;
i
++
)
{
for
(
j
=
0
;
j
<
MAX_ATTRIBS
;
j
++
)
{
if
(
!
This
->
baseShader
.
reg_maps
.
attributes
[
j
])
continue
;
usage_token
=
This
->
semantics_in
[
j
].
usage
;
usage
=
(
usage_token
&
WINED3DSP_DCL_USAGE_MASK
)
>>
WINED3DSP_DCL_USAGE_SHIFT
;
usage_idx
=
(
usage_token
&
WINED3DSP_DCL_USAGEINDEX_MASK
)
>>
WINED3DSP_DCL_USAGEINDEX_SHIFT
;
...
...
@@ -679,7 +682,7 @@ static inline BOOL swizzled_attribs_differ(IWineD3DVertexShaderImpl *This, IWine
for
(
i
=
0
;
i
<
vdecl
->
declarationWNumElements
;
i
++
)
{
for
(
j
=
0
;
j
<
MAX_ATTRIBS
;
j
++
)
{
if
(
!
This
->
baseShader
.
reg_maps
.
attributes
)
continue
;
if
(
!
This
->
baseShader
.
reg_maps
.
attributes
[
j
]
)
continue
;
usage_token
=
This
->
semantics_in
[
j
].
usage
;
usage
=
(
usage_token
&
WINED3DSP_DCL_USAGE_MASK
)
>>
WINED3DSP_DCL_USAGE_SHIFT
;
...
...
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