]> git.sesse.net Git - movit/commitdiff
DeconvolutionSharpenEffect needs texture bounce.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 22:29:11 +0000 (23:29 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 22:29:11 +0000 (23:29 +0100)
Anything else will be incredibly slow. Reported by Christophe Thommeret.

deconvolution_sharpen_effect.h

index d0987f200b5c4e0284e3d295c3ee2d540f269d23..293916fd52da9433d7843ff9ca26c3526a8fdc06 100644 (file)
@@ -29,6 +29,9 @@ public:
        virtual std::string effect_type_id() const { return "DeconvolutionSharpenEffect"; }
        std::string output_fragment_shader();
 
        virtual std::string effect_type_id() const { return "DeconvolutionSharpenEffect"; }
        std::string output_fragment_shader();
 
+       // Samples a lot of times from its input.
+       virtual bool needs_texture_bounce() const { return true; }
+
        virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height)
        {
                this->width = width;
        virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height)
        {
                this->width = width;