History

Turns out we do have to initialize the "odd frame" field.

Andrzej Kapolka committed 13 years ago

Commit 49da6121 parent ecc6d412 files · +4 −2Browse files

Showing the changes to interface/src/renderer/GlowEffect.cpp (1 of 2 files). Show all

Unified · Split

interface/src/renderer/GlowEffect.cpp+2−2
@@ -15,11 +15,11 @@ · 14 unmodified lines
1515 #include "ProgramObject.h"
1616 #include "RenderUtil.h"
1717
18−GlowEffect::GlowEffect() : _renderMode(DIFFUSE_ADD_MODE) {
18+GlowEffect::GlowEffect() : _renderMode(DIFFUSE_ADD_MODE), _isOddFrame(false) {
1919 }
2020
2121 QOpenGLFramebufferObject* GlowEffect::getFreeFramebufferObject() const {
22− return (_renderMode == DIFFUSE_ADD_MODE && _isOddFrame) ?
22+ return (_renderMode == DIFFUSE_ADD_MODE && !_isOddFrame) ?
2323 Application::getInstance()->getTextureCache()->getTertiaryFramebufferObject() :
2424 Application::getInstance()->getTextureCache()->getSecondaryFramebufferObject();
2525 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t