# Babylon 4.2 enabling spotlight gives webgl uniform error

**URL:** <https://forum.babylonjs.com/t/babylon-4-2-enabling-spotlight-gives-webgl-uniform-error/22642>\
**Category:** Questions\
**Created:** [July 27, 2021, 8:24pm UTC](https://forum.babylonjs.com/t/babylon-4-2-enabling-spotlight-gives-webgl-uniform-error/22642 "2021-07-27T20:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 27, 2021, 9:40pm UTC](https://forum.babylonjs.com/t/babylon-4-2-enabling-spotlight-gives-webgl-uniform-error/22642/2 "2021-07-27T21:40:04Z")

</div>

That will be hard to help on this one, as we don’t do fixes of older Babylon versions.

Have you tried with 5.0? I know we fixed some “It is undefined behaviour to use a uniform buffer that is too small” warnings, but I don’t remember if it applies to spotlights or not…

Note also that if you get this warning only a single time (or a small number of times - meaning, the number of logs in the console log does not rise infinitely - or at least does not reach 250, which is I think the limit after which the browser stops logging an error), it is ok, it means the problem is only transient and your program is fine.

---

_[View the full topic](https://forum.babylonjs.com/t/babylon-4-2-enabling-spotlight-gives-webgl-uniform-error/22642)._
