mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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 (CLP(color_mask)) {
|
||||
unsigned int channels = _target._color_write->get_channels();
|
||||
GLP(ColorMask)(channels & ColorWriteAttrib::C_red,
|
||||
channels & ColorWriteAttrib::C_green,
|
||||
channels & ColorWriteAttrib::C_blue,
|
||||
channels & ColorWriteAttrib::C_alpha);
|
||||
GLP(ColorMask)((channels & ColorWriteAttrib::C_red) != 0,
|
||||
(channels & ColorWriteAttrib::C_green) != 0,
|
||||
(channels & ColorWriteAttrib::C_blue) != 0,
|
||||
(channels & ColorWriteAttrib::C_alpha) != 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user