Skip to content

Commit ca54363

Browse files
martinkenkwrobot
authored andcommitted
Merge topic 'init_blend_func'
eeb5cf5 Always set our default opengl blend func Acked-by: Kitware Robot <[email protected]> Acked-by: Utkarsh Ayachit <[email protected]> Merge-request: !6931
2 parents 26daabc + eeb5cf5 commit ca54363

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,11 @@ void vtkOpenGLRenderWindow::Start()
10711071
this->GetState()->Initialize(this);
10721072
}
10731073

1074+
// default to our standard alpha blend eqn, some vtk classes rely on this
1075+
// and do not set it themselves
1076+
this->GetState()->vtkglBlendFuncSeparate(
1077+
GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
1078+
10741079
// creates or resizes the framebuffer
10751080
this->Size[0] = (this->Size[0] > 0 ? this->Size[0] : 300);
10761081
this->Size[1] = (this->Size[1] > 0 ? this->Size[1] : 300);

0 commit comments

Comments
 (0)