Disposing and recreating a GreasedLineMaterial

Hello,

disposing a greased line along with its material will make subsequent created greased lines invisible

https://playground.babylonjs.com/#H1LRZ3#795

The reason is disposing the material will also dispose the (shared) Empty Color Texture that is cached in defaults

Let me add @roland to the thread

Sorry for the late reply! :blush: Is this bug still relevant, or did someone already manage to fix it? If not, I can take care of it.

Looks like this wound up getting fixed in a separate thread :smiley: GreasedLine materialType 2 not working after dispose