Stopped Oculus UI from glowing.

This commit is contained in:
barnold1953 2014-06-03 16:01:47 -07:00
parent 036bdf5d07
commit d4fd1e9515
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;