|flag||The flag will be either true (enabled, the default value) or false (disabled).|
You can use this function to enable or disable the automatic
drawing of the application surface. By default this is enabled, but
in many cases you will want to take over when and how the surface
is drawn (when using shaders for example), in which case you would
use this function to set it to false so that you can draw it
yourself when and how you require.
The above code will switch off the automatic drawing of the application surface.