]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Make the ResourcePool hold FBOs as a per-context resource.
[movit] / effect_chain.h
index 6452d14952dbbda0a67fe879e45c4b96cd86d37f..2b959bda68bfc2f5502f743c9ccb9435e79f9794 100644 (file)
 // but if so, the threads' contexts need to be set up to share resources, since
 // the EffectChain holds textures and other OpenGL objects that are tied to the
 // context.
+//
+// Memory management (only relevant if you use multiple contexts):
+// See corresponding comment in resource_pool.h. This holds even if you don't
+// allocate your own ResourcePool, but let EffectChain hold its own.
 
 #include <GL/glew.h>
 #include <stdio.h>