Commit 6452e10d authored by Ken Martin's avatar Ken Martin Committed by Code Review

Merge topic 'depth_peeling_point_gaussian_fix' into master

e6a31ede Fix interactions of depth peeling with the point gaussian mapper.
parents f872738d e6a31ede
......@@ -382,7 +382,6 @@ void vtkOpenGLPointGaussianMapperHelper::RenderPieceDraw(vtkRenderer* ren, vtkAc
vtkgl::VBOLayout &layout = this->Layout;
// draw polygons
glDepthMask(GL_FALSE);
glBlendFunc( GL_SRC_ALPHA, GL_ONE); // additive for emissive sources
if (layout.VertexCount)
{
......@@ -427,6 +426,12 @@ void vtkOpenGLPointGaussianMapper::ReleaseGraphicsResources(vtkWindow* win)
this->Modified();
}
//-----------------------------------------------------------------------------
bool vtkOpenGLPointGaussianMapper::GetIsOpaque()
{
return false;
}
//-----------------------------------------------------------------------------
void vtkOpenGLPointGaussianMapper::PrintSelf(ostream& os, vtkIndent indent)
{
......
......@@ -37,6 +37,10 @@ public:
// resources to release.
void ReleaseGraphicsResources(vtkWindow *);
// Description:
// Is this mapper opqaue? currently always false.
virtual bool GetIsOpaque();
protected:
vtkOpenGLPointGaussianMapper();
~vtkOpenGLPointGaussianMapper();
......
Markdown is supported
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