Modifier

Partager via


GRContext.AbandonContext(Boolean) Method

Definition

Abandons all GPU resources and assumes the underlying backend 3D API context is not longer usable. After returning it will assume that the underlying context may no longer be valid.

public void AbandonContext (bool releaseResources = false);

Parameters

releaseResources
Boolean

Use true to indicate that the underlying 3D context is not yet lost and the GRContext will cleanup all allocated resources before returning. Using false will ensure that the destructors of the GRContext and any of its created resource objects will not make backend 3D API calls.

Applies to