When the EffectFrame is created, there may not be any opengl context current. (cherry picked from commit 3b8b87a6)