Merge pull request #2977 from Barnold1953/OculusOverlay

Stopped Oculus Overlay Glow
This commit is contained in:
Andrzej Kapolka 2014-06-03 16:13:35 -07:00
commit 6faa7f8f77
2 changed files with 2 additions and 2 deletions

View file

@ -339,10 +339,9 @@ void ApplicationOverlay::displayOverlayTextureOculus(Camera& whichCamera) {
const float halfHorizontalAngle = horizontalAngle / 2;
glActiveTexture(GL_TEXTURE0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE);
glBindTexture(GL_TEXTURE_2D, getFramebufferObject()->texture());
glEnable(GL_DEPTH_TEST);
glDisable(GL_LIGHTING);

View file

@ -35,6 +35,7 @@ public:
private:
ProgramObject _textureProgram;
QOpenGLFramebufferObject* _framebufferObject;
float _trailingAudioLoudness;
float _oculusAngle;