mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +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());
|
||||
if (hazePointer) {
|
||||
batch.setUniformBuffer(HazeEffect_ParamsSlot, hazePointer->getHazeParametersBuffer());
|
||||
} else {
|
||||
// Something is wrong, so just quit Haze
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue