Commit 2570c0d8 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic 'revert-05f87557'

4b5426d2

 Revert "vtkOpenGLRenderWindow: bind default frame buffer"
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Seun Odutola's avatarSeun Odutola <seun@rogue-research.com>
Acked-by: Sean McBride's avatarSean McBride <sean@rogue-research.com>
Merge-request: !5853
parents f01e6faa 4b5426d2
Pipeline #143775 failed with stage
in 0 seconds
......@@ -1282,7 +1282,8 @@ void vtkOpenGLRenderWindow::Start()
this->FrontRightBuffer = buffer1;
}
}
else if (!this->UseOffScreenBuffers && this->OffScreenFramebufferBound)
if (!this->UseOffScreenBuffers && this->OffScreenFramebufferBound)
{
this->OffScreenFramebuffer->RestorePreviousBindingsAndBuffers();
this->OffScreenFramebufferBound = false;
......@@ -1293,11 +1294,6 @@ void vtkOpenGLRenderWindow::Start()
this->BackBuffer = static_cast<unsigned int>(GL_BACK);
this->FrontBuffer = static_cast<unsigned int>(GL_FRONT);
}
else
{
// makes sense to activate the default framebuffer.
glBindFramebuffer(GL_FRAMEBUFFER, this->GetDefaultFrameBufferId());
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment