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
96b0b917
Commit
96b0b917
authored
Apr 16, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Copy the entire vector at once if there is no need of type conversions.
parent
a1784d9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
effect.c
dlls/d3dx9_36/effect.c
+17
-0
No files found.
dlls/d3dx9_36/effect.c
View file @
96b0b917
...
...
@@ -1792,6 +1792,12 @@ static HRESULT d3dx9_base_effect_set_vector(struct d3dx9_base_effect *base,
*
(
INT
*
)
param
->
data
=
tmp
;
return
D3D_OK
;
}
if
(
param
->
type
==
D3DXPT_FLOAT
)
{
memcpy
(
param
->
data
,
vector
,
param
->
columns
*
sizeof
(
float
));
return
D3D_OK
;
}
set_vector
(
param
,
vector
);
return
D3D_OK
;
...
...
@@ -1866,6 +1872,17 @@ static HRESULT d3dx9_base_effect_set_vector_array(struct d3dx9_base_effect *base
switch
(
param
->
class
)
{
case
D3DXPC_VECTOR
:
if
(
param
->
type
==
D3DXPT_FLOAT
)
{
if
(
param
->
columns
==
4
)
memcpy
(
param
->
data
,
vector
,
count
*
4
*
sizeof
(
float
));
else
for
(
i
=
0
;
i
<
count
;
++
i
)
memcpy
((
float
*
)
param
->
data
+
param
->
columns
*
i
,
vector
+
i
,
param
->
columns
*
sizeof
(
float
));
return
D3D_OK
;
}
for
(
i
=
0
;
i
<
count
;
++
i
)
{
set_vector
(
&
param
->
members
[
i
],
&
vector
[
i
]);
...
...
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