]> git.sesse.net Git - movit/blobdiff - dither_effect.h
Fix a Clang warning.
[movit] / dither_effect.h
index 535b783959a4a3355d16873ddbfe27f734baede6..cad6488921b67c5f60a3a1ac17fb97dec440b474 100644 (file)
 #include "effect.h"
 
 class DitherEffect : public Effect {
-public:
+private:
+       // Should not be instantiated by end users;
+       // call EffectChain::set_dither_bits() instead.
        DitherEffect();
+       friend class EffectChain;
+
+public:
        ~DitherEffect();
        virtual std::string effect_type_id() const { return "DitherEffect"; }
        std::string output_fragment_shader();