eglDestroyImage - EGL Reference Pages

## 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

Copyright © 2003-2014 The Khronos Group Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.