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
7823679e
Commit
7823679e
authored
Aug 24, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly check if an attribute is used in state_colormat().
parent
c1c58f85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
state.c
dlls/wined3d/state.c
+3
-5
No files found.
dlls/wined3d/state.c
View file @
7823679e
...
@@ -1177,8 +1177,6 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock, stru
...
@@ -1177,8 +1177,6 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock, stru
{
{
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
IWineD3DDeviceImpl
*
device
=
stateblock
->
wineD3DDevice
;
GLenum
Parm
=
0
;
GLenum
Parm
=
0
;
const
struct
wined3d_stream_info_element
*
diffuse
=
&
device
->
strided_streams
.
elements
[
WINED3D_FFP_DIFFUSE
];
BOOL
isDiffuseSupplied
;
/* Depends on the decoded vertex declaration to read the existence of diffuse data.
/* Depends on the decoded vertex declaration to read the existence of diffuse data.
* The vertex declaration will call this function if the fixed function pipeline is used.
* The vertex declaration will call this function if the fixed function pipeline is used.
...
@@ -1188,10 +1186,10 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock, stru
...
@@ -1188,10 +1186,10 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock, stru
return
;
return
;
}
}
isDiffuseSupplied
=
diffuse
->
data
||
diffuse
->
buffer_object
;
context
->
num_untracked_materials
=
0
;
context
->
num_untracked_materials
=
0
;
if
(
isDiffuseSupplied
&&
stateblock
->
renderState
[
WINED3DRS_COLORVERTEX
])
{
if
((
device
->
strided_streams
.
use_map
&
(
1
<<
WINED3D_FFP_DIFFUSE
))
&&
stateblock
->
renderState
[
WINED3DRS_COLORVERTEX
])
{
TRACE
(
"diff %d, amb %d, emis %d, spec %d
\n
"
,
TRACE
(
"diff %d, amb %d, emis %d, spec %d
\n
"
,
stateblock
->
renderState
[
WINED3DRS_DIFFUSEMATERIALSOURCE
],
stateblock
->
renderState
[
WINED3DRS_DIFFUSEMATERIALSOURCE
],
stateblock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
],
stateblock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
],
...
...
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