This PR attempts fixing #1239 just by adding simple nullptr check. I'm not sure if this is enough i.e. if it's valid that GLContext::current() may be null at this point, although judging by same check being done in the same class in TextureMapperPlatformLayerBuffer::clone() it likely may be.
This PR attempts fixing #1239 just by adding simple
nullptr
check. I'm not sure if this is enough i.e. if it's valid thatGLContext::current()
may be null at this point, although judging by same check being done in the same class inTextureMapperPlatformLayerBuffer::clone()
it likely may be.Should be reviewed by @magomez