diff --git a/src/modules/graphics/Graphics.h b/src/modules/graphics/Graphics.h index 13c7eed75..304a514f2 100644 --- a/src/modules/graphics/Graphics.h +++ b/src/modules/graphics/Graphics.h @@ -134,6 +134,14 @@ public: { bool r, g, b, a; + ColorMask() + : r(true), g(true), b(true), a(true) + {} + + ColorMask(bool _r, bool _g, bool _b, bool _a) + : r(_r), g(_g), b(_b), a(_a) + {} + bool operator == (const ColorMask &m) const { return r == m.r && g == m.g && b == m.b && a == m.a; diff --git a/src/modules/graphics/opengl/Graphics.h b/src/modules/graphics/opengl/Graphics.h index 1fc72bde7..1cafcfe9a 100644 --- a/src/modules/graphics/opengl/Graphics.h +++ b/src/modules/graphics/opengl/Graphics.h @@ -487,7 +487,7 @@ private: std::vector> canvases; - ColorMask colorMask = {true, true, true, true}; + ColorMask colorMask = ColorMask(true, true, true, true); bool wireframe = false;