mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Protect against use of null HazePointer.
This commit is contained in:
parent
b4df115507
commit
79f0124244
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ void DrawHaze::run(const render::RenderContextPointer& renderContext, const Inpu
|
||||||
model::HazePointer hazePointer = hazeStage->getHaze(hazeStage->_currentFrame._hazes.front());
|
model::HazePointer hazePointer = hazeStage->getHaze(hazeStage->_currentFrame._hazes.front());
|
||||||
if (hazePointer) {
|
if (hazePointer) {
|
||||||
batch.setUniformBuffer(HazeEffect_ParamsSlot, hazePointer->getHazeParametersBuffer());
|
batch.setUniformBuffer(HazeEffect_ParamsSlot, hazePointer->getHazeParametersBuffer());
|
||||||
|
} else {
|
||||||
|
// Something is wrong, so just quit Haze
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue