]> git.sesse.net Git - movit/blobdiff - ycbcr_input.cpp
Unbreak YCbCrInput (it needs to still support setting the "needs_mipmaps" int to...
[movit] / ycbcr_input.cpp
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