mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Fix a couple of minor issues in shadows
This commit is contained in:
parent
7995a92672
commit
b2fca46206
1 changed files with 6 additions and 3 deletions
|
@ -777,6 +777,7 @@ MWShadowTechnique::MWShadowTechnique(const MWShadowTechnique& vdsm, const osg::C
|
|||
ShadowTechnique(vdsm,copyop)
|
||||
{
|
||||
_shadowRecievingPlaceholderStateSet = new osg::StateSet;
|
||||
_enableShadows = vdsm._enableShadows;
|
||||
}
|
||||
|
||||
MWShadowTechnique::~MWShadowTechnique()
|
||||
|
@ -2011,18 +2012,20 @@ struct ConvexHull
|
|||
Vertices unwantedEdgeEnds = findInternalEdges(vertex, connectedVertices);
|
||||
for (auto edgeEnd : unwantedEdgeEnds)
|
||||
{
|
||||
for (auto itr = _edges.begin(); itr != _edges.end(); ++itr)
|
||||
for (auto itr = _edges.begin(); itr != _edges.end();)
|
||||
{
|
||||
if (*itr == Edge(vertex, edgeEnd))
|
||||
{
|
||||
_edges.erase(itr);
|
||||
itr = _edges.erase(itr);
|
||||
break;
|
||||
}
|
||||
else if (*itr == Edge(edgeEnd, vertex))
|
||||
{
|
||||
_edges.erase(itr);
|
||||
itr = _edges.erase(itr);
|
||||
break;
|
||||
}
|
||||
else
|
||||
++itr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue