Showing the changes to interface/src/renderer/GlowEffect.cpp (1 of 2 files). Show all
Unified · Split
| @@ -15,11 +15,11 @@ · 14 unmodified lines | |||
| 15 | #include "ProgramObject.h" | 15 | #include "ProgramObject.h" |
| 16 | #include "RenderUtil.h" | 16 | #include "RenderUtil.h" |
| 17 | 17 | ||
| 18 | GlowEffect::GlowEffect() : _renderMode(DIFFUSE_ADD_MODE) { | 18 | GlowEffect::GlowEffect() : _renderMode(DIFFUSE_ADD_MODE), _isOddFrame(false) { |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | QOpenGLFramebufferObject* GlowEffect::getFreeFramebufferObject() const { | 21 | QOpenGLFramebufferObject* GlowEffect::getFreeFramebufferObject() const { |
| 22 | return (_renderMode == DIFFUSE_ADD_MODE && _isOddFrame) ? | 22 | return (_renderMode == DIFFUSE_ADD_MODE && !_isOddFrame) ? |
| 23 | Application::getInstance()->getTextureCache()->getTertiaryFramebufferObject() : | 23 | Application::getInstance()->getTextureCache()->getTertiaryFramebufferObject() : |
| 24 | Application::getInstance()->getTextureCache()->getSecondaryFramebufferObject(); | 24 | Application::getInstance()->getTextureCache()->getSecondaryFramebufferObject(); |
| 25 | } | 25 | } |