diff --git a/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.cpp b/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.cpp index 52e20e300b6..52d4665c039 100644 --- a/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.cpp +++ b/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.cpp @@ -42,7 +42,6 @@ OglSceneFrame::OglSceneFrame() , d_style(initData(&d_style, defaultStyle, "style", ("Style of the frame\n" + Style::dataDescription()).c_str())) , d_alignment(initData(&d_alignment, defaultAlignment, "alignment", ("Alignment of the frame in the view\n" + Alignment::dataDescription()).c_str())) , d_viewportSize(initData(&d_viewportSize, 150, "viewportSize", "Size of the viewport where the frame is rendered")) - , d_solidBackground(initData(&d_solidBackground, false, "solidBackground", "If true, an opaque bkacground will be rendered; otherwise the frame is rendered on top on the normal viewport.")) {} void OglSceneFrame::drawArrows(const core::visual::VisualParams* vparams) @@ -132,16 +131,8 @@ void OglSceneFrame::doDrawVisual(const core::visual::VisualParams* vparams) } glEnable(GL_SCISSOR_TEST); - if(d_solidBackground.getValue()) - { - // reset color and depth for the mini viewport (setting a background and making render on front) - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); - } - else - { - // only reset depth to appear on front - glClear(GL_DEPTH_BUFFER_BIT ); - } + // only reset depth to appear on front + glClear(GL_DEPTH_BUFFER_BIT ); glMatrixMode(GL_PROJECTION); vparams->drawTool()->pushMatrix(); diff --git a/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.h b/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.h index 224b81876e8..d834c9584d1 100644 --- a/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.h +++ b/Sofa/GL/Component/Rendering3D/src/sofa/gl/component/rendering3d/OglSceneFrame.h @@ -58,7 +58,6 @@ class SOFA_GL_COMPONENT_RENDERING3D_API OglSceneFrame : public core::visual::Vis Data d_alignment; ///< Alignment of the frame in the view Data d_viewportSize; ///< Size of the viewport where the frame is rendered - Data d_solidBackground; OglSceneFrame();