Skip to content

Commit

Permalink
Merge topic 'init_blend_func'
Browse files Browse the repository at this point in the history
eeb5cf5 Always set our default opengl blend func

Acked-by: Kitware Robot <[email protected]>
Acked-by: Utkarsh Ayachit <[email protected]>
Merge-request: !6931
  • Loading branch information
martinken authored and kwrobot committed May 26, 2020
2 parents 26daabc + eeb5cf5 commit ca54363
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,11 @@ void vtkOpenGLRenderWindow::Start()
this->GetState()->Initialize(this);
}

// default to our standard alpha blend eqn, some vtk classes rely on this
// and do not set it themselves
this->GetState()->vtkglBlendFuncSeparate(
GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);

// creates or resizes the framebuffer
this->Size[0] = (this->Size[0] > 0 ? this->Size[0] : 300);
this->Size[1] = (this->Size[1] > 0 ? this->Size[1] : 300);
Expand Down

0 comments on commit ca54363

Please sign in to comment.