]> git.sesse.net Git - movit/blobdiff - glow_effect.h
Make FlatInput and YCbCrInput support taking in external OpenGL textures.
[movit] / glow_effect.h
index af833070558a05ce46e4aa5865516da0714cd740..02520d7bd9ad8f87f38dd9c4365f63be9e85851f 100644 (file)
@@ -4,7 +4,7 @@
 // Glow: Cut out the highlights of the image (everything above a certain threshold),
 // blur them, and overlay them onto the original image.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 #include <string>
 
@@ -52,6 +52,7 @@ public:
        std::string output_fragment_shader();
        
        virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
+       virtual bool one_to_one_sampling() const { return true; }
 
 private:
        float cutoff;