pass true bools to ColorMask

This commit is contained in:
David Rose 2005-09-28 15:38:25 +00:00
parent fd71491bc6
commit 6ffd095fdf

View File

@ -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);
}
}
}