]> git.sesse.net Git - movit/commitdiff
Unbreak YCbCrInput (it needs to still support setting the "needs_mipmaps" int to...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 29 Jul 2015 11:53:44 +0000 (13:53 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 29 Jul 2015 11:53:44 +0000 (13:53 +0200)
ycbcr_input.cpp
ycbcr_input.h

index cf6632f2391bcf8fc49afed13b11513dc428b565..6cf311628692b5c278ce20c99071d02739be9451 100644 (file)
@@ -241,4 +241,13 @@ void YCbCrInput::invalidate_pixel_data()
        }
 }
 
+bool YCbCrInput::set_int(const std::string& key, int value)
+{
+       if (key == "needs_mipmaps") {
+               // We currently do not support this.
+               return (value == 0);
+       }
+       return Effect::set_int(key, value);
+}
+
 }  // namespace movit
index 30492770ac436af8d2ff209e085b921fc549947b..4c7b3e9a2b6bd8282976f8a759c0061a16c2fb7b 100644 (file)
@@ -91,6 +91,8 @@ public:
                resource_pool = chain->get_resource_pool();
        }
 
+       bool set_int(const std::string& key, int value);
+
 private:
        ImageFormat image_format;
        YCbCrFormat ycbcr_format;