kmFreeTexture

Deletes texture data.

KMSTATUS KMAPI
kmFreeTexture(
IN PKMSURFACEDESC pSurfaceDesc
)

Description:

This function releases a texture surface allocated by kmCreateTextureSurface/kmCreateCombinedTextureSurface/kmCreateContiguousTextureSurface.
This function cannot release the area secured by the kmCreateFixedTextureArea function.

Parameters:

pSurfaceDesc(input)
Texture surface allocated by kmCreateTextureSurface/kmCreateCombinedTextureSurface/kmCreateContiguousTextureSurface. This parameter is a pointer to KMSURFACEDESC-type structure.

Return values:

Value | Explanation
--- | ---
KMSTATUS_SUCCESS | Released successfully
KMSTATUS_INVALID_ADDRESS | Specified area (Surface) is not allocated.

kmFreeTexture