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
1bfd8998
Commit
1bfd8998
authored
Aug 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Avoid a redundant vertex declaration copy in test_decl_to_fvf().
parent
5ed9403c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
mesh.c
dlls/d3dx9_36/tests/mesh.c
+1
-18
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
1bfd8998
...
...
@@ -429,20 +429,6 @@ static inline void print_elements(const D3DVERTEXELEMENT9 *elements)
}
}
static
inline
void
copy_elements
(
D3DVERTEXELEMENT9
*
decl
,
const
D3DVERTEXELEMENT9
*
elements
)
{
unsigned
int
i
;
D3DVERTEXELEMENT9
last
=
D3DDECL_END
();
int
end1
;
for
(
i
=
0
;
i
<
MAX_FVF_DECL_SIZE
;
i
++
)
{
memcpy
(
&
decl
[
i
],
&
elements
[
i
],
sizeof
(
D3DVERTEXELEMENT9
));
end1
=
memcmp
(
&
elements
[
i
],
&
last
,
sizeof
(
D3DVERTEXELEMENT9
));
if
(
!
end1
)
break
;
}
}
static
void
compare_elements
(
const
D3DVERTEXELEMENT9
*
elements
,
const
D3DVERTEXELEMENT9
*
expected_elements
,
unsigned
int
line
)
{
...
...
@@ -482,14 +468,11 @@ static void test_fvf_to_decl(DWORD test_fvf, const D3DVERTEXELEMENT9 expected_el
if
(
SUCCEEDED
(
hr
))
{
compare_elements
(
decl
,
expected_elements
,
line
);
}
}
static
void
test_decl_to_fvf
(
const
D3DVERTEXELEMENT9
test_decl
[]
,
DWORD
expected_fvf
,
HRESULT
expected_hr
,
static
void
test_decl_to_fvf
(
const
D3DVERTEXELEMENT9
*
decl
,
DWORD
expected_fvf
,
HRESULT
expected_hr
,
BOOL
todo
,
unsigned
int
line
)
{
HRESULT
hr
;
DWORD
result_fvf
=
0xdeadbeef
;
D3DVERTEXELEMENT9
decl
[
MAX_FVF_DECL_SIZE
];
copy_elements
(
decl
,
test_decl
);
hr
=
D3DXFVFFromDeclarator
(
decl
,
&
result_fvf
);
if
(
todo
)
todo_wine
ok
(
hr
==
expected_hr
,
"D3DXFVFFromDeclarator returned %#x, expected %#x, line #%u
\n
"
,
...
...
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