I would like to be able to force the underlying cachedImage to be invalid,
eg
void OpenGLContext::invalidateAll()
{
if (CachedImage* const cachedImage = getCachedImage())
cachedImage->invalidateAll();
}
similar to the already existing triggerRepaint' call. Currently any 2D overlay of an OpenGLContext wont redraw unless the 2D changes. However, if the 3D is changing it will need to redraw. Calling
invalidateAll’ does the trick.
other ideas welcome,
– hugh.