You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an object that holds context-specific data (using gem::ContextData<>) is destroyed, all context-data should be destroyed in the correct context.
This involves switching to each context and freeing any resources.
e.g.
static void GemContext::forEachContext(GemBase&obj) {
oldctx=getCurrentContext();
for ctx in contexts
do
ctx.makeCurrent();
obj.removedContext();
done
oldctx.makeCurrent();
}
Similiary, when an openGL-context is destroyed (e.g. by closing a window), each object holding context-specific data should be called to free the resources of this context:
myContext::destroy() {
makeCurrent();
for obj in GemBase::objects
do
obj.removedContext();
done
}
The text was updated successfully, but these errors were encountered:
When an object that holds context-specific data (using
gem::ContextData<>
) is destroyed, all context-data should be destroyed in the correct context.This involves switching to each context and freeing any resources.
e.g.
Similiary, when an openGL-context is destroyed (e.g. by closing a window), each object holding context-specific data should be called to free the resources of this context:
The text was updated successfully, but these errors were encountered: