natiny_surface_unbind

C
void natiny_surface_unbind(void);

Ends the current surface target set and restores the target state suspended by its slot 0 bind.

Example

C
natiny_surface_unbind();

Notes

  • Restored state includes the targets, camera matrices, material, draw and clear colours, coordinate scale, and scissor rectangles. An active viewport ends when the render target changes. See The bind stack.
  • One call ends the entire target set, regardless of how many slots it uses.
  • Calling with no suspended target set has no effect.