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
0bdab5f8
Commit
0bdab5f8
authored
Dec 28, 2008
by
Chris Robinson
Committed by
Alexandre Julliard
Dec 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use the correct size for D3DFVF_XYZW.
parent
7f11abc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
vertexdeclaration.c
dlls/d3d9/tests/vertexdeclaration.c
+5
-0
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+4
-0
No files found.
dlls/d3d9/tests/vertexdeclaration.c
View file @
0bdab5f8
...
...
@@ -454,6 +454,11 @@ static void test_fvf_decl_conversion(IDirect3DDevice9 *pDevice)
}
{
CONST
D3DVERTEXELEMENT9
test_buffer
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT4
,
0
,
D3DDECLUSAGE_POSITION
,
0
},
D3DDECL_END
()
};
VDECL_CHECK
(
test_fvf_to_decl
(
pDevice
,
default_decl
,
D3DFVF_XYZW
,
test_buffer
,
1
));
}
{
CONST
D3DVERTEXELEMENT9
test_buffer
[]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT4
,
0
,
D3DDECLUSAGE_POSITIONT
,
0
},
D3DDECL_END
()
};
VDECL_CHECK
(
test_fvf_to_decl
(
pDevice
,
default_decl
,
D3DFVF_XYZRHW
,
test_buffer
,
1
));
}
...
...
dlls/d3d9/vertexdeclaration.c
View file @
0bdab5f8
...
...
@@ -96,6 +96,10 @@ HRESULT vdecl_convert_fvf(
elements
[
idx
].
Type
=
D3DDECLTYPE_FLOAT4
;
elements
[
idx
].
Usage
=
D3DDECLUSAGE_POSITIONT
;
}
else
if
(
!
has_blend
&&
(
fvf
&
D3DFVF_XYZW
)
==
D3DFVF_XYZW
)
{
elements
[
idx
].
Type
=
D3DDECLTYPE_FLOAT4
;
elements
[
idx
].
Usage
=
D3DDECLUSAGE_POSITION
;
}
else
{
elements
[
idx
].
Type
=
D3DDECLTYPE_FLOAT3
;
elements
[
idx
].
Usage
=
D3DDECLUSAGE_POSITION
;
...
...
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