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
612a74a9
Commit
612a74a9
authored
Jan 17, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't set Parm when isDiffuseSupplied is FALSE in state_colormat(), it isn't used anyway.
parent
d4ca34dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
state.c
dlls/wined3d/state.c
+3
-3
No files found.
dlls/wined3d/state.c
View file @
612a74a9
...
...
@@ -812,7 +812,7 @@ static void state_fogdensity(DWORD state, IWineD3DStateBlockImpl *stateblock) {
/* TODO: Merge with primitive type + init_materials()!! */
static
void
state_colormat
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
GLenum
Parm
=
-
1
;
GLenum
Parm
=
0
;
WineDirect3DStridedData
*
diffuse
=
&
stateblock
->
wineD3DDevice
->
strided_streams
.
u
.
s
.
diffuse
;
BOOL
isDiffuseSupplied
;
...
...
@@ -825,7 +825,7 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock) {
isDiffuseSupplied
=
diffuse
->
lpData
||
diffuse
->
VBO
;
if
(
stateblock
->
renderState
[
WINED3DRS_COLORVERTEX
])
{
if
(
isDiffuseSupplied
&&
stateblock
->
renderState
[
WINED3DRS_COLORVERTEX
])
{
TRACE
(
"diff %d, amb %d, emis %d, spec %d
\n
"
,
stateblock
->
renderState
[
WINED3DRS_DIFFUSEMATERIALSOURCE
],
stateblock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
],
...
...
@@ -847,7 +847,7 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
if
(
Parm
==
-
1
||
!
isDiffuseSupplied
)
{
if
(
!
Parm
)
{
glDisable
(
GL_COLOR_MATERIAL
);
checkGLcall
(
"glDisable GL_COLOR_MATERIAL"
);
}
else
{
...
...
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