mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 22:26:25 +02:00
Fix for glow flickering.
This commit is contained in:
parent
8472775674
commit
a5a81a585e
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ QOpenGLFramebufferObject* GlowEffect::render(bool toTexture) {
|
||||||
|
|
||||||
QOpenGLFramebufferObject* destFBO = toTexture ?
|
QOpenGLFramebufferObject* destFBO = toTexture ?
|
||||||
Application::getInstance()->getTextureCache()->getSecondaryFramebufferObject() : NULL;
|
Application::getInstance()->getTextureCache()->getSecondaryFramebufferObject() : NULL;
|
||||||
if (_isEmpty) {
|
if (_isEmpty && _renderMode != DIFFUSE_ADD_MODE) {
|
||||||
// copy the primary to the screen
|
// copy the primary to the screen
|
||||||
if (QOpenGLFramebufferObject::hasOpenGLFramebufferBlit()) {
|
if (QOpenGLFramebufferObject::hasOpenGLFramebufferBlit()) {
|
||||||
QOpenGLFramebufferObject::blitFramebuffer(destFBO, primaryFBO);
|
QOpenGLFramebufferObject::blitFramebuffer(destFBO, primaryFBO);
|
||||||
|
|
Loading…
Reference in a new issue