Commit 4b5426d2 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Revert "vtkOpenGLRenderWindow: bind default frame buffer"

This reverts commit 05f87557.

Seems to be causing issues with macOS for certain apps, reverting
for now.
parent 12169702
......@@ -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