From 3b9db413463dfc30d97836bf164066ead187c305 Mon Sep 17 00:00:00 2001 From: Coleman Smith Date: Thu, 10 Dec 2020 17:03:10 -0800 Subject: [PATCH] removing unneeded variable --- apps/opencs/view/render/scenewidget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/opencs/view/render/scenewidget.cpp b/apps/opencs/view/render/scenewidget.cpp index b2648da67..4d73cde15 100644 --- a/apps/opencs/view/render/scenewidget.cpp +++ b/apps/opencs/view/render/scenewidget.cpp @@ -301,8 +301,6 @@ osg::ref_ptr SceneWidget::createGradientRectangle(QColor bgColour colours->push_back(osg::Vec4ub(bgColour.red(), bgColour.green(), bgColour.blue(), 1.0f)); colours->push_back(osg::Vec4ub(bgColour.red(), bgColour.green(), bgColour.blue(), 1.0f)); - osg::Vec4ub bgVec = osg::Vec4ub(bgColour.red(), bgColour.green(), bgColour.blue(), 1.0f); - geometry->setColorArray(colours, osg::Array::BIND_PER_VERTEX); geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);