]> git.sesse.net Git - movit/blobdiff - resource_pool.h
Fix an issue where temporary textures could be reused too early by a different thread.
[movit] / resource_pool.h
index 85a5e52cd0de92a040bbd4f79f8e5e305aef5bf0..1b9515c09f4cfe21dc2db94f1f4c818ee84b4c4d 100644 (file)
@@ -211,6 +211,7 @@ private:
        struct Texture2D {
                GLint internal_format;
                GLsizei width, height;
+               GLsync no_reuse_before = nullptr;
        };
 
        // A mapping from texture number to format details. This is filled if the