OpenGLContext::invalidateAll()


#1

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. CallinginvalidateAll’ does the trick.

other ideas welcome,
– hugh.


#2

Isn’t that just the same as calling yourGLComp->getCachedComponentImage()->invalidateAll() ?


#3

Yes it is!

Thanks. I was looking for methods via the OpenGLContext, but this gets to the same place.