When the EffectFrame is created, there may not be any opengl context current.
mentioned in commit 8e293042