Restored glow effect

This commit is contained in:
barnold1953 2014-06-30 16:26:50 -07:00
parent e51eb34f05
commit de0e65eb03

View file

@ -333,9 +333,8 @@ void OculusManager::display(const glm::quat &bodyOrientation, const glm::vec3 &p
glViewport(0, 0, _renderTargetSize.w, _renderTargetSize.h); glViewport(0, 0, _renderTargetSize.w, _renderTargetSize.h);
//Bind the output texture from the glow shader //Bind the output texture from the glow shader
// QOpenGLFramebufferObject* fbo = Application::getInstance()->getGlowEffect()->render(true); QOpenGLFramebufferObject* fbo = Application::getInstance()->getGlowEffect()->render(true);
Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->release(); glBindTexture(GL_TEXTURE_2D, fbo->texture());
glBindTexture(GL_TEXTURE_2D, Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->texture());
// restore our normal viewport // restore our normal viewport
glViewport(0, 0, Application::getInstance()->getGLWidget()->width(), Application::getInstance()->getGLWidget()->height()); glViewport(0, 0, Application::getInstance()->getGLWidget()->width(), Application::getInstance()->getGLWidget()->height());