]> git.sesse.net Git - movit/blobdiff - ycbcr_input.h
Make FlatInput and YCbCrInput release the texture to the pool on invalidate_pixel_data().
[movit] / ycbcr_input.h
index eb8d0ec335db4b90bb8b138f45b3c67ddb31fbde..9f4e320cb6926f1f21d8fc98b2a9c66669ecb6da 100644 (file)
@@ -80,10 +80,7 @@ public:
                invalidate_pixel_data();
        }
 
-       void invalidate_pixel_data()
-       {
-               needs_update = true;
-       }
+       void invalidate_pixel_data();
 
        void set_pitch(unsigned channel, unsigned pitch) {
                assert(channel >= 0 && channel < 3);
@@ -99,7 +96,7 @@ private:
        ImageFormat image_format;
        YCbCrFormat ycbcr_format;
        GLuint pbos[3], texture_num[3];
-       bool needs_update, finalized;
+       bool finalized;
 
        int needs_mipmaps;