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
5cfca92c
Commit
5cfca92c
authored
Mar 17, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Copy the entire matrix at once if there is no need of type conversions.
parent
1e2fbcc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
effect.c
dlls/d3dx9_36/effect.c
+10
-0
No files found.
dlls/d3dx9_36/effect.c
View file @
5cfca92c
...
...
@@ -768,6 +768,16 @@ static void set_matrix(struct d3dx_parameter *param, const D3DXMATRIX *matrix)
{
UINT
i
,
k
;
if
(
param
->
type
==
D3DXPT_FLOAT
)
{
if
(
param
->
columns
==
4
)
memcpy
(
param
->
data
,
matrix
->
u
.
m
,
param
->
rows
*
4
*
sizeof
(
float
));
else
for
(
i
=
0
;
i
<
param
->
rows
;
++
i
)
memcpy
((
float
*
)
param
->
data
+
i
*
param
->
columns
,
matrix
->
u
.
m
+
i
,
param
->
columns
*
sizeof
(
float
));
return
;
}
for
(
i
=
0
;
i
<
param
->
rows
;
++
i
)
{
for
(
k
=
0
;
k
<
param
->
columns
;
++
k
)
...
...
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