Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
941c7da0
Commit
941c7da0
authored
Mar 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't warn about independent color write masks when the masks are all the same.
parent
4651dd86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
state.c
dlls/wined3d/state.c
+18
-17
No files found.
dlls/wined3d/state.c
View file @
941c7da0
...
...
@@ -1525,27 +1525,28 @@ static void state_debug_monitor(DWORD state, IWineD3DStateBlockImpl *stateblock,
static
void
state_colorwrite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
{
DWORD
Value
=
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
];
DWORD
mask0
=
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
];
DWORD
mask1
=
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE1
];
DWORD
mask2
=
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE2
];
DWORD
mask3
=
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE3
];
TRACE
(
"Color mask: r(%d) g(%d) b(%d) a(%d)
\n
"
,
Value
&
WINED3DCOLORWRITEENABLE_RED
?
1
:
0
,
Value
&
WINED3DCOLORWRITEENABLE_GREEN
?
1
:
0
,
Value
&
WINED3DCOLORWRITEENABLE_BLUE
?
1
:
0
,
Value
&
WINED3DCOLORWRITEENABLE_ALPHA
?
1
:
0
);
glColorMask
(
Value
&
WINED3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINED3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINED3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINED3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
mask0
&
WINED3DCOLORWRITEENABLE_RED
?
1
:
0
,
mask0
&
WINED3DCOLORWRITEENABLE_GREEN
?
1
:
0
,
mask0
&
WINED3DCOLORWRITEENABLE_BLUE
?
1
:
0
,
mask0
&
WINED3DCOLORWRITEENABLE_ALPHA
?
1
:
0
);
glColorMask
(
mask0
&
WINED3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
mask0
&
WINED3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
mask0
&
WINED3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
mask0
&
WINED3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
checkGLcall
(
"glColorMask(...)"
);
/* depends on WINED3DRS_COLORWRITEENABLE. */
if
(
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE1
]
!=
0x0000000F
||
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE2
]
!=
0x0000000F
||
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE3
]
!=
0x0000000F
)
{
ERR
(
"(WINED3DRS_COLORWRITEENABLE1/2/3,%d,%d,%d) not yet implemented. Missing of cap D3DPMISCCAPS_INDEPENDENTWRITEMASKS wasn't honored?
\n
"
,
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE1
],
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE2
],
stateblock
->
renderState
[
WINED3DRS_COLORWRITEENABLE3
]);
if
(
!
((
mask1
==
mask0
&&
mask2
==
mask0
&&
mask3
==
mask0
)
||
(
mask1
==
0xf
&&
mask2
==
0xf
&&
mask3
==
0xf
)))
{
FIXME
(
"WINED3DRS_COLORWRITEENABLE/1/2/3, %#x/%#x/%#x/%#x not yet implemented.
\n
"
,
mask0
,
mask1
,
mask2
,
mask3
);
FIXME
(
"Missing of cap D3DPMISCCAPS_INDEPENDENTWRITEMASKS wasn't honored?
\n
"
);
}
}
...
...
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