| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Leave direct mode and release the direct-mode context
void PdReleaseDirectContext( 
        PdDirectContext_t *DirectContext );
ph
This function leaves direct mode (if the application is currently in it), destroys the direct-mode context, and restores the original default context.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PdCreateDirectContext(), PdDirectStart(), PdDirectStop(), PdSetTargetDevice()
“Direct mode” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |