# EnableClearDepth

## Description

Sets whether the depth buffer should be cleared when Sync or Swap are called. By default this is set to true. Disabling this is not recommended as anything that uses the depth buffer will only appear for one frame and then seeming disappear. This function may not have any effect on mobile devices.

## Definition

EnableClearDepth( clear )

void agk::EnableClearDepth( UINT clear )

## Parameters

- clear - Set to 1 to clear the depth buffer, 0 to not clear it.