declaration:
function pop_video_context() => context index
Remove the current VID context from the stack, deallocated all associated resources. Returns the current active context number. This can be used for quick means of garbage collection / error recover.
related functions:
[push_video_context] [system_context_size] [current_context_usage]
**changes / deprecations: **
It is currently not possible to have any VIDs persist between context stacks, and this limits its use somewhat. Thus in future revisions, it may be possible for certain VIDs to be masked as persistant, preventing them from being deleted but also puts restrictions on being used in framesets/instancing etc.
caveats:
The stack only applies for resources tied to VIDs, audio resources are tied to AIDs and thus managed in a separate namespace.
Wiki: Video Functions
Wiki: persist_image
Wiki: push_video_context