mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix color write mask in OpenGL
This commit is contained in:
parent
6a263746cd
commit
027a561843
@ -624,10 +624,10 @@ INLINE void CLP(GraphicsStateGuardian)::
|
||||
set_color_write_mask(int mask) {
|
||||
if (gl_color_mask && _active_color_write_mask != mask) {
|
||||
_active_color_write_mask = mask;
|
||||
glColorMask((_color_write_mask & ColorWriteAttrib::C_red) != 0,
|
||||
(_color_write_mask & ColorWriteAttrib::C_green) != 0,
|
||||
(_color_write_mask & ColorWriteAttrib::C_blue) != 0,
|
||||
(_color_write_mask & ColorWriteAttrib::C_alpha) != 0);
|
||||
glColorMask((mask & ColorWriteAttrib::C_red) != 0,
|
||||
(mask & ColorWriteAttrib::C_green) != 0,
|
||||
(mask & ColorWriteAttrib::C_blue) != 0,
|
||||
(mask & ColorWriteAttrib::C_alpha) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user