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
cbe717b8
Commit
cbe717b8
authored
Mar 23, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take the input slot into account when handling WINED3D_APPEND_ALIGNED_ELEMENT.
parent
f3765e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+11
-7
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
cbe717b8
...
...
@@ -218,14 +218,18 @@ static HRESULT vertexdeclaration_init(struct wined3d_vertex_declaration *declara
if
(
e
->
offset
==
WINED3D_APPEND_ALIGNED_ELEMENT
)
{
if
(
!
i
)
{
e
->
offset
=
0
;
}
else
const
struct
wined3d_vertex_declaration_element
*
prev
;
unsigned
int
j
;
e
->
offset
=
0
;
for
(
j
=
1
;
j
<=
i
;
++
j
)
{
struct
wined3d_vertex_declaration_element
*
prev
=
&
declaration
->
elements
[
i
-
1
];
e
->
offset
=
(
prev
->
offset
+
prev
->
format
->
byte_count
+
3
)
&
~
3
;
prev
=
&
declaration
->
elements
[
i
-
j
];
if
(
prev
->
input_slot
==
e
->
input_slot
)
{
e
->
offset
=
(
prev
->
offset
+
prev
->
format
->
byte_count
+
3
)
&
~
3
;
break
;
}
}
}
...
...
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