Release a memory context
#include <photon/PhRender.h> void PmMemReleaseMC( PmMemoryContext_t *mc );
This function releases the draw context, and shuts down and frees any resources created by the provided memory context.
|This function doesn't release the image buffer if PmMemCreateMC() didn't create it.|
If the provided memory context is active at the time of this call, the default draw context automatically becomes the current draw context.
“Flickerless animation” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide