]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Unbreak FBO caching in unit tests.
[movit] / effect_chain.h
index 8d75e8a7bd1b6dbad1363608529271c4fd7ae471..992fb58da2e172969b178c3ac012746ab4673fe9 100644 (file)
@@ -397,8 +397,10 @@ public:
        // Only one destination texture is supported. This restriction will be lifted
        // in the future.
        //
-       // All destination textures must be exactly of size <width> x <height>.
-       // width and height can not be zero.
+       // All destination textures must be exactly of size <width> x <height>,
+       // and must either come from the same ResourcePool the effect uses, or outlive
+       // the EffectChain (otherwise, we could be allocating FBOs that end up being
+       // stale). width and height can not be zero.
        struct DestinationTexture {
                GLuint texnum;
                GLenum format;