X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fblend.h;fp=source%2Fcore%2Fblend.h;h=874230c682c9ccf82e21c88a644f1dc61aa6034d;hp=3edebc8c7f4bdde90e8d7aa14c2ab87cc300ff04;hb=4595453156db0c47926946b0ea1732b1e37e70ce;hpb=1cbc8df4a72799feada39767e80973f4c93ae523 diff --git a/source/core/blend.h b/source/core/blend.h index 3edebc8c..874230c6 100644 --- a/source/core/blend.h +++ b/source/core/blend.h @@ -67,6 +67,7 @@ struct Blend BlendFactor dst_factor = ZERO; Color constant = { 0.0f, 0.0f, 0.0f, 0.0f }; ColorWriteMask write_mask = WRITE_ALL; + bool alpha_to_coverage = false; Blend() = default; Blend(BlendFactor, BlendFactor); @@ -79,7 +80,8 @@ struct Blend inline bool Blend::operator==(const Blend &other) const { return enabled==other.enabled && equation==other.equation && src_factor==other.src_factor && - dst_factor==other.dst_factor && constant==other.constant && write_mask==other.write_mask; + dst_factor==other.dst_factor && constant==other.constant && write_mask==other.write_mask && + alpha_to_coverage==other.alpha_to_coverage; }