mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 08:49:20 -05:00
Fixing a crash with RenderableTrails when time is set manually
This commit is contained in:
@@ -177,7 +177,7 @@ void RenderableTrail::update(const UpdateData& data) {
|
|||||||
// close to 1
|
// close to 1
|
||||||
|
|
||||||
// But you never know
|
// But you never know
|
||||||
nValues = std::min(nValues, int(_vertexArray.size()));
|
nValues = std::min(nValues, int(_vertexArray.size() - 1));
|
||||||
//LINFO(nValues);
|
//LINFO(nValues);
|
||||||
std::vector<TrailVBOLayout> tmp = _vertexArray;
|
std::vector<TrailVBOLayout> tmp = _vertexArray;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user