pop_video_context - Deallocate the current video context.
All video objects are bound to (at least) one rendering context. The currently
active context is managed on a stack. Poping involves deleting all video
subsystem related resources currently bound to the active context.
- 1
- poping the outmost context is similar to deleting all allocated vids.
function pop_video_context0()
a = fill_surface(VRESW, VRESH, 0, 255, 0);
show_image(a);
pop_video_context(); -- a should disappear
move_image(a, 0, 0); -- should yield a crash
end
system_context_size(3) current_context_usage(3)
push_video_context(3)