Name

eglDestroyImage — Destroy an EGLImage object

C Specification

EGLBoolean eglDestroyImage( (EGLDisplay display,
  EGLImage image);
 

Parameters

display

Specifies the EGL display connection.

image

Specifies the image to destroy.

Description

eglDestroyImage is used to destroy the specified EGLImage object image. Once destroyed, image may not be used to create any additional EGLImage target resources within any client API contexts, although existing EGLImage siblings may continue to be used. EGL_TRUE is returned on success.

Errors

On failure, eglDestroyImage returns EGL_FALSE

If display is not the handle of a valid EGLDisplay object, the error EGL_BAD_DISPLAY is generated.

If image is not a valid EGLImage object created with respect to display, the error EGL_BAD_PARAMETER is generated.

Notes

eglDestroyImage is available only if the EGL version is 1.5 or greater.

See Also

eglCreateImage