mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 20:29:57 +00:00
null check
This commit is contained in:
parent
2cea4f3172
commit
c513ec7824
1 changed files with 3 additions and 0 deletions
|
@ -608,6 +608,9 @@ namespace SceneUtil
|
||||||
public:
|
public:
|
||||||
LightManagerCullCallback(LightManager* lightManager)
|
LightManagerCullCallback(LightManager* lightManager)
|
||||||
{
|
{
|
||||||
|
if (!lightManager->getUBOManager())
|
||||||
|
return;
|
||||||
|
|
||||||
for (size_t i = 0; i < mStateSet.size(); ++i)
|
for (size_t i = 0; i < mStateSet.size(); ++i)
|
||||||
{
|
{
|
||||||
auto& buffer = lightManager->getUBOManager()->getLightBuffer(i);
|
auto& buffer = lightManager->getUBOManager()->getLightBuffer(i);
|
||||||
|
|
Loading…
Reference in a new issue