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
a6f2c003
Commit
a6f2c003
authored
Sep 22, 2010
by
Misha Koshelev
Committed by
Alexandre Julliard
Sep 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: D3DXDeclaratorFromFVF returns D3DERR_INVALIDCALL when an invalid declarator is passed.
parent
e8f56565
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
mesh.c
dlls/d3dx9_36/mesh.c
+2
-0
mesh.c
dlls/d3dx9_36/tests/mesh.c
+2
-0
No files found.
dlls/d3dx9_36/mesh.c
View file @
a6f2c003
...
...
@@ -559,6 +559,8 @@ HRESULT WINAPI D3DXDeclaratorFromFVF(DWORD fvf, D3DVERTEXELEMENT9 declaration[MA
TRACE
(
"fvf %#x, declaration %p.
\n
"
,
fvf
,
declaration
);
if
(
fvf
&
(
D3DFVF_RESERVED0
|
D3DFVF_RESERVED2
))
return
D3DERR_INVALIDCALL
;
if
(
fvf
&
D3DFVF_POSITION_MASK
)
{
BOOL
has_blend
=
(
fvf
&
D3DFVF_XYZB5
)
>=
D3DFVF_XYZB1
;
...
...
dlls/d3dx9_36/tests/mesh.c
View file @
a6f2c003
...
...
@@ -836,6 +836,8 @@ static void test_fvf_decl_conversion(void)
};
test_decl_to_fvf
(
decl
,
0
,
D3DERR_INVALIDCALL
,
__LINE__
,
0
);
}
/* Invalid FVFs cannot be converted to a declarator. */
test_fvf_to_decl
(
0xdeadbeef
,
NULL
,
D3DERR_INVALIDCALL
,
__LINE__
,
0
);
}
static
void
D3DXGetFVFVertexSizeTest
(
void
)
...
...
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