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
bda89180
Commit
bda89180
authored
Aug 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly check if an attribute is used in streamsrc().
parent
c9f270a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
state.c
dlls/wined3d/state.c
+16
-11
No files found.
dlls/wined3d/state.c
View file @
bda89180
...
...
@@ -4426,18 +4426,23 @@ static void streamsrc(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wi
device
->
useDrawStridedSlow
=
FALSE
;
}
}
else
if
(
fixup
||
(
!
dataLocations
->
elements
[
WINED3D_FFP_PSIZE
].
data
&&
!
dataLocations
->
position_transformed
&&
(
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
)
||
(
!
dataLocations
->
elements
[
WINED3D_FFP_DIFFUSE
].
data
&&
!
dataLocations
->
elements
[
WINED3D_FFP_SPECULAR
].
data
))))
else
{
/* Load the vertex data using named arrays */
load_named
=
TRUE
;
device
->
useDrawStridedSlow
=
FALSE
;
}
else
{
TRACE
(
"Not loading vertex data
\n
"
);
device
->
useDrawStridedSlow
=
TRUE
;
WORD
slow_mask
=
(
1
<<
WINED3D_FFP_PSIZE
);
slow_mask
|=
-!
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
)
&
((
1
<<
WINED3D_FFP_DIFFUSE
)
|
(
1
<<
WINED3D_FFP_SPECULAR
));
if
(
fixup
||
(
!
dataLocations
->
position_transformed
&&
!
(
dataLocations
->
use_map
&
slow_mask
)))
{
/* Load the vertex data using named arrays */
load_named
=
TRUE
;
device
->
useDrawStridedSlow
=
FALSE
;
}
else
{
TRACE
(
"Not loading vertex data
\n
"
);
device
->
useDrawStridedSlow
=
TRUE
;
}
}
if
(
context
->
numberedArraysLoaded
&&
!
load_numbered
)
...
...
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