Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.07 KB

destroying-objects-associated-with-a-direct3d-context.md

File metadata and controls

22 lines (13 loc) · 1.07 KB
title description keywords ms.date
Destroying Objects Associated with a Direct3D Context
Destroying Objects Associated with a Direct3D Context
memory leaks WDK DirectX 9.0
context WDK Direct3D , DirectX 9.0
destroying objects associated with context WDK DirectX 9.0
04/20/2017

Destroying Objects Associated with a Direct3D Context

This topic applies to DirectX 7.0 and later.

To prevent memory leaks, a display driver must release all objects associated with a Direct3D context when the driver's D3dContextDestroy function is called. These objects include, for example, vertex and pixel shaders, declarations and code for vertex shaders, resources for asynchronous queries, and texture resources.