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
218de935
Commit
218de935
authored
Nov 26, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix a sign mistake in the code creating the sorted attrib.
parent
a0127f2e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+1
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+1
-1
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
218de935
...
@@ -175,7 +175,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_SetDeclaration(IWineD3DVerte
...
@@ -175,7 +175,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_SetDeclaration(IWineD3DVerte
(
This
->
swizzled_attribs
[
j
].
usage
==
This
->
pDeclarationWine
[
i
].
Usage
&&
(
This
->
swizzled_attribs
[
j
].
usage
==
This
->
pDeclarationWine
[
i
].
Usage
&&
This
->
swizzled_attribs
[
j
].
idx
>
This
->
pDeclarationWine
[
i
].
UsageIndex
))
{
This
->
swizzled_attribs
[
j
].
idx
>
This
->
pDeclarationWine
[
i
].
UsageIndex
))
{
memmove
(
&
This
->
swizzled_attribs
[
j
+
1
],
&
This
->
swizzled_attribs
[
j
],
memmove
(
&
This
->
swizzled_attribs
[
j
+
1
],
&
This
->
swizzled_attribs
[
j
],
sizeof
(
This
->
swizzled_attribs
)
-
(
sizeof
(
This
->
swizzled_attribs
[
0
])
*
(
j
-
1
)));
sizeof
(
This
->
swizzled_attribs
)
-
(
sizeof
(
This
->
swizzled_attribs
[
0
])
*
(
j
+
1
)));
break
;
break
;
}
}
}
}
...
...
dlls/wined3d/vertexshader.c
View file @
218de935
...
@@ -336,7 +336,7 @@ static inline void find_swizzled_attribs(IWineD3DVertexDeclaration *declaration,
...
@@ -336,7 +336,7 @@ static inline void find_swizzled_attribs(IWineD3DVertexDeclaration *declaration,
oldswizzles
[
i
].
usage
==
This
->
swizzled_attribs
[
j
].
usage
&&
oldswizzles
[
i
].
usage
==
This
->
swizzled_attribs
[
j
].
usage
&&
oldswizzles
[
i
].
idx
>
This
->
swizzled_attribs
[
j
].
idx
))
{
oldswizzles
[
i
].
idx
>
This
->
swizzled_attribs
[
j
].
idx
))
{
memmove
(
&
This
->
swizzled_attribs
[
j
+
1
],
&
This
->
swizzled_attribs
[
j
],
memmove
(
&
This
->
swizzled_attribs
[
j
+
1
],
&
This
->
swizzled_attribs
[
j
],
sizeof
(
This
->
swizzled_attribs
)
-
(
sizeof
(
This
->
swizzled_attribs
[
0
])
*
(
j
-
1
)));
sizeof
(
This
->
swizzled_attribs
)
-
(
sizeof
(
This
->
swizzled_attribs
[
0
])
*
(
j
+
1
)));
break
;
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