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
c3cc92e4
Commit
c3cc92e4
authored
Jan 04, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DMATERIALCOLORSOURCE typedef.
parent
223b0736
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
20 deletions
+19
-20
state.c
dlls/wined3d/state.c
+10
-10
stateblock.c
dlls/wined3d/stateblock.c
+4
-4
wined3d.h
include/wine/wined3d.h
+5
-6
No files found.
dlls/wined3d/state.c
View file @
c3cc92e4
...
...
@@ -1264,47 +1264,47 @@ static void state_colormat(struct wined3d_context *context, const struct wined3d
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
],
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]);
if
(
state
->
render_states
[
WINED3D_RS_DIFFUSEMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_DIFFUSEMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
if
(
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
Parm
=
GL_AMBIENT_AND_DIFFUSE
;
else
Parm
=
GL_DIFFUSE
;
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
context
->
untracked_materials
[
context
->
num_untracked_materials
]
=
GL_EMISSION
;
context
->
num_untracked_materials
++
;
}
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
context
->
untracked_materials
[
context
->
num_untracked_materials
]
=
GL_SPECULAR
;
context
->
num_untracked_materials
++
;
}
}
else
if
(
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
else
if
(
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
Parm
=
GL_AMBIENT
;
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
context
->
untracked_materials
[
context
->
num_untracked_materials
]
=
GL_EMISSION
;
context
->
num_untracked_materials
++
;
}
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
context
->
untracked_materials
[
context
->
num_untracked_materials
]
=
GL_SPECULAR
;
context
->
num_untracked_materials
++
;
}
}
else
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
else
if
(
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
Parm
=
GL_EMISSION
;
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
context
->
untracked_materials
[
context
->
num_untracked_materials
]
=
GL_SPECULAR
;
context
->
num_untracked_materials
++
;
}
}
else
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3DMCS_COLOR1
)
else
if
(
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
==
WINED3D
_
MCS_COLOR1
)
{
Parm
=
GL_SPECULAR
;
}
...
...
dlls/wined3d/stateblock.c
View file @
c3cc92e4
...
...
@@ -1176,10 +1176,10 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3D_RS_COLORVERTEX
]
=
TRUE
;
state
->
render_states
[
WINED3D_RS_LOCALVIEWER
]
=
TRUE
;
state
->
render_states
[
WINED3D_RS_NORMALIZENORMALS
]
=
FALSE
;
state
->
render_states
[
WINED3D_RS_DIFFUSEMATERIALSOURCE
]
=
WINED3DMCS_COLOR1
;
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
=
WINED3DMCS_COLOR2
;
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
=
WINED3DMCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
=
WINED3DMCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_DIFFUSEMATERIALSOURCE
]
=
WINED3D
_
MCS_COLOR1
;
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
=
WINED3D
_
MCS_COLOR2
;
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
=
WINED3D
_
MCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
=
WINED3D
_
MCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
]
=
WINED3D_VBF_DISABLE
;
state
->
render_states
[
WINED3D_RS_CLIPPLANEENABLE
]
=
0
;
state
->
render_states
[
WINED3D_RS_SOFTWAREVERTEXPROCESSING
]
=
FALSE
;
...
...
include/wine/wined3d.h
View file @
c3cc92e4
...
...
@@ -481,13 +481,12 @@ enum wined3d_stencil_op
WINED3D_STENCIL_OP_DECR
=
8
,
};
typedef
enum
_WINED3DMATERIALCOLORSOURCE
enum
wined3d_material_color_source
{
WINED3DMCS_MATERIAL
=
0
,
WINED3DMCS_COLOR1
=
1
,
WINED3DMCS_COLOR2
=
2
,
WINED3DMCS_FORCE_DWORD
=
0x7fffffff
}
WINED3DMATERIALCOLORSOURCE
;
WINED3D_MCS_MATERIAL
=
0
,
WINED3D_MCS_COLOR1
=
1
,
WINED3D_MCS_COLOR2
=
2
,
};
typedef
enum
_WINED3DPATCHEDGESTYLE
{
...
...
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