mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
pass true bools to ColorMask
This commit is contained in:
parent
fd71491bc6
commit
6ffd095fdf
@ -3087,10 +3087,10 @@ do_issue_blending() {
|
|||||||
if (_target._color_write != _state._color_write) {
|
if (_target._color_write != _state._color_write) {
|
||||||
if (CLP(color_mask)) {
|
if (CLP(color_mask)) {
|
||||||
unsigned int channels = _target._color_write->get_channels();
|
unsigned int channels = _target._color_write->get_channels();
|
||||||
GLP(ColorMask)(channels & ColorWriteAttrib::C_red,
|
GLP(ColorMask)((channels & ColorWriteAttrib::C_red) != 0,
|
||||||
channels & ColorWriteAttrib::C_green,
|
(channels & ColorWriteAttrib::C_green) != 0,
|
||||||
channels & ColorWriteAttrib::C_blue,
|
(channels & ColorWriteAttrib::C_blue) != 0,
|
||||||
channels & ColorWriteAttrib::C_alpha);
|
(channels & ColorWriteAttrib::C_alpha) != 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user