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
25b60e16
Commit
25b60e16
authored
Mar 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do the ffp_valid check before even trying to use the element.
parent
4469fbd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
drawprim.c
dlls/wined3d/drawprim.c
+23
-15
No files found.
dlls/wined3d/drawprim.c
View file @
25b60e16
...
...
@@ -162,10 +162,23 @@ void primitiveDeclarationConvertToStridedData(
TRACE
(
"Offset %d Stream %d UsageIndex %d
\n
"
,
element
->
Offset
,
element
->
Stream
,
element
->
UsageIndex
);
if
(
useVertexShaderFunction
)
{
stride_used
=
vshader_get_input
(
This
->
stateBlock
->
vertexShader
,
element
->
Usage
,
element
->
UsageIndex
,
&
idx
);
}
else
stride_used
=
fixed_get_input
(
element
->
Usage
,
element
->
UsageIndex
,
&
idx
);
{
if
(
!
vertexDeclaration
->
ffp_valid
[
i
])
{
WARN
(
"Skipping unsupported fixed function element of type %s and usage %s
\n
"
,
debug_d3ddecltype
(
element
->
Type
),
debug_d3ddeclusage
(
element
->
Usage
));
stride_used
=
FALSE
;
}
else
{
stride_used
=
fixed_get_input
(
element
->
Usage
,
element
->
UsageIndex
,
&
idx
);
}
}
if
(
stride_used
)
{
TRACE
(
"Load %s array %u [usage=%s, usage_idx=%u, "
...
...
@@ -174,21 +187,16 @@ void primitiveDeclarationConvertToStridedData(
debug_d3ddeclusage
(
element
->
Usage
),
element
->
UsageIndex
,
element
->
Stream
,
element
->
Offset
,
stride
,
debug_d3ddecltype
(
element
->
Type
),
streamVBO
);
if
(
!
useVertexShaderFunction
&&
!
vertexDeclaration
->
ffp_valid
[
i
])
{
WARN
(
"Skipping unsupported fixed function element of type %s and usage %s
\n
"
,
debug_d3ddecltype
(
element
->
Type
),
debug_d3ddeclusage
(
element
->
Usage
));
}
else
{
strided
->
u
.
input
[
idx
].
lpData
=
data
;
strided
->
u
.
input
[
idx
].
dwType
=
element
->
Type
;
strided
->
u
.
input
[
idx
].
dwStride
=
stride
;
strided
->
u
.
input
[
idx
].
VBO
=
streamVBO
;
strided
->
u
.
input
[
idx
].
streamNo
=
element
->
Stream
;
if
(
!
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
)
&&
element
->
Type
==
WINED3DDECLTYPE_D3DCOLOR
)
{
strided
->
swizzle_map
|=
1
<<
idx
;
}
strided
->
use_map
|=
1
<<
idx
;
strided
->
u
.
input
[
idx
].
lpData
=
data
;
strided
->
u
.
input
[
idx
].
dwType
=
element
->
Type
;
strided
->
u
.
input
[
idx
].
dwStride
=
stride
;
strided
->
u
.
input
[
idx
].
VBO
=
streamVBO
;
strided
->
u
.
input
[
idx
].
streamNo
=
element
->
Stream
;
if
(
!
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
)
&&
element
->
Type
==
WINED3DDECLTYPE_D3DCOLOR
)
{
strided
->
swizzle_map
|=
1
<<
idx
;
}
strided
->
use_map
|=
1
<<
idx
;
}
}
/* Now call PreLoad on all the vertex buffers. In the very rare case
...
...
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