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
3e495fe4
Commit
3e495fe4
authored
Dec 16, 2005
by
Ragnvald "Despair" Maartmann-Moe IV
Committed by
Alexandre Julliard
Dec 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix matrix copy/paste bug.
parent
74e28a35
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pixelshader.c
dlls/wined3d/pixelshader.c
+1
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+1
-1
No files found.
dlls/wined3d/pixelshader.c
View file @
3e495fe4
...
...
@@ -363,7 +363,7 @@ void pshader_m4x3(WINED3DSHADERVECTOR* d, WINED3DSHADERVECTOR* s0, D3DMATRIX34 m
void
pshader_m3x4
(
WINED3DSHADERVECTOR
*
d
,
WINED3DSHADERVECTOR
*
s0
,
D3DMATRIX43
mat
)
{
d
->
x
=
mat
[
0
][
0
]
*
s0
->
x
+
mat
[
0
][
1
]
*
s0
->
y
+
mat
[
0
][
2
]
*
s0
->
z
;
d
->
y
=
mat
[
2
][
0
]
*
s0
->
x
+
mat
[
1
][
1
]
*
s0
->
y
+
mat
[
1
][
2
]
*
s0
->
z
;
d
->
y
=
mat
[
1
][
0
]
*
s0
->
x
+
mat
[
1
][
1
]
*
s0
->
y
+
mat
[
1
][
2
]
*
s0
->
z
;
d
->
z
=
mat
[
2
][
0
]
*
s0
->
x
+
mat
[
2
][
1
]
*
s0
->
y
+
mat
[
2
][
2
]
*
s0
->
z
;
d
->
w
=
mat
[
3
][
0
]
*
s0
->
x
+
mat
[
3
][
1
]
*
s0
->
y
+
mat
[
3
][
2
]
*
s0
->
z
;
PSTRACE
((
"executing m3x4(1): mat=(%f, %f, %f) s0=(%f) d=(%f)
\n
"
,
mat
[
0
][
0
],
mat
[
0
][
1
],
mat
[
0
][
2
],
s0
->
x
,
d
->
x
));
...
...
dlls/wined3d/vertexshader.c
View file @
3e495fe4
...
...
@@ -315,7 +315,7 @@ void vshader_m4x3(WINED3DSHADERVECTOR* d, WINED3DSHADERVECTOR* s0, D3DMATRIX34 m
void
vshader_m3x4
(
WINED3DSHADERVECTOR
*
d
,
WINED3DSHADERVECTOR
*
s0
,
D3DMATRIX43
mat
)
{
d
->
x
=
mat
[
0
][
0
]
*
s0
->
x
+
mat
[
0
][
1
]
*
s0
->
y
+
mat
[
0
][
2
]
*
s0
->
z
;
d
->
y
=
mat
[
2
][
0
]
*
s0
->
x
+
mat
[
1
][
1
]
*
s0
->
y
+
mat
[
1
][
2
]
*
s0
->
z
;
d
->
y
=
mat
[
1
][
0
]
*
s0
->
x
+
mat
[
1
][
1
]
*
s0
->
y
+
mat
[
1
][
2
]
*
s0
->
z
;
d
->
z
=
mat
[
2
][
0
]
*
s0
->
x
+
mat
[
2
][
1
]
*
s0
->
y
+
mat
[
2
][
2
]
*
s0
->
z
;
d
->
w
=
mat
[
3
][
0
]
*
s0
->
x
+
mat
[
3
][
1
]
*
s0
->
y
+
mat
[
3
][
2
]
*
s0
->
z
;
VSTRACE
((
"executing m3x4(1): mat=(%f, %f, %f) s0=(%f) d=(%f)
\n
"
,
mat
[
0
][
0
],
mat
[
0
][
1
],
mat
[
0
][
2
],
s0
->
x
,
d
->
x
));
...
...
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