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 cf6632f..6cf3116 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 3049277..4c7b3e9 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;