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
f8079b69
Commit
f8079b69
authored
Jul 21, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Jul 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct a problem with the way that FVF vertex arrays containing
blends or orthographic is calculated.
parent
d1b575e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drawprim.c
dlls/wined3d/drawprim.c
+6
-5
No files found.
dlls/wined3d/drawprim.c
View file @
f8079b69
...
...
@@ -604,12 +604,13 @@ static void primitiveConvertToStridedData(IWineD3DDevice *iface, Direct3DVertexS
/* Blending is numBlends * FLOATs followed by a DWORD for UBYTE4 */
/** do we have to Check This->stateBlock->renderState[D3DRS_INDEXEDVERTEXBLENDENABLE] ? */
numBlends
=
((
thisFVF
&
D3DFVF_POSITION_MASK
)
>>
1
)
-
2
+
((
FALSE
==
(
thisFVF
&
D3DFVF_LASTBETA_UBYTE4
))
?
0
:
-
1
);
/* WARNING can be < 0 because -2 */
if
(
numBlends
>
0
)
{
canDoViaGLPointers
=
FALSE
;
numBlends
=
1
+
(((
thisFVF
&
D3DFVF_XYZB5
)
-
D3DFVF_XYZB1
)
>>
1
);
if
(
thisFVF
&
D3DFVF_LASTBETA_UBYTE4
)
numBlends
--
;
if
((
thisFVF
&
D3DFVF_XYZB5
)
>
D3DFVF_XYZRHW
)
{
TRACE
(
"Setting blend Weights to %p
\n
"
,
data
);
strided
->
u
.
s
.
blendWeights
.
lpData
=
data
;
strided
->
u
.
s
.
blendWeights
.
dwType
=
D3DDECLTYPE_FLOAT1
+
(
numBlends
-
1
)
;
strided
->
u
.
s
.
blendWeights
.
dwType
=
D3DDECLTYPE_FLOAT1
+
numBlends
-
1
;
strided
->
u
.
s
.
blendWeights
.
dwStride
=
stride
;
data
+=
numBlends
*
sizeof
(
FLOAT
);
...
...
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