Deactivate a memory context
#include <photon/PhRender.h> PhDrawContext_t * PmMemStop( PmMemoryContext_t *mc );
This function deactivates the memory context mc, if it's active, making the default draw context active. This means that draw commands are sent to Photon (i.e. draws will no longer be affecting the memory image).
The mc argument if the memory context was successfully deactivated, or NULL if it wasn't active at the time of this call.
PmMemCreateMC(), PmMemReleaseMC(), PmMemStart()
“Flickerless animation” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide