1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 06:41:08 +00:00

removing unneeded variable

This commit is contained in:
Coleman Smith 2020-12-10 17:03:10 -08:00
parent d35715e5dc
commit 3b9db41346

View File

@ -301,8 +301,6 @@ osg::ref_ptr<osg::Geometry> 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));
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->setColorArray(colours, osg::Array::BIND_PER_VERTEX);
geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);