1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 20:29:57 +00:00

null check

This commit is contained in:
glassmancody.info 2022-08-08 12:53:20 -07:00
parent 2cea4f3172
commit c513ec7824

View file

@ -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);