]> git.sesse.net Git - movit/blobdiff - resize_effect.h
Add explicit support for requesting no mipmaps.
[movit] / resize_effect.h
index 9d23806a3315a33b84da00f11d98bdfa11f0397e..a921eb0f29aea02fc00e9f0bfe8c9ac9d2cc4a5e 100644 (file)
@@ -20,7 +20,7 @@ public:
        // We want processing done pre-filtering and mipmapped,
        // in case we need to scale down a lot.
        bool needs_texture_bounce() const override { return true; }
-       bool needs_mipmaps() const override { return true; }
+       MipmapRequirements needs_mipmaps() const override { return NEEDS_MIPMAPS; }
        AlphaHandling alpha_handling() const override { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
 
        bool changes_output_size() const override { return true; }