]> git.sesse.net Git - movit/commit
Generate the FBO anew every render.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Dec 2013 22:59:05 +0000 (23:59 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Dec 2013 22:59:05 +0000 (23:59 +0100)
commit6dea8d2a6695a45aa6209425cdcfb4eabf704340
tree611a11f6acc0a743c12af5c77d95c3468d445e15
parentb5a446a44ee1f0379e8427f86f5dfa0d40bc0e60
Generate the FBO anew every render.

This fixes an issue where reusing the same EffectChain from two different GL
contexts would cause errors even if they are shared, because FBOs cannot be
shared between contexts (in the ARB extension, anyway).

There might be some negative performance implications to this, but I was unable
to measure any on Intel/Mesa. If this should prove to be a problem in the future,
we could maybe keep one around per context, or have the caller invalidate the
FBO for us.
effect_chain.cpp
effect_chain.h