blob: 408fbf5036bf449a6688079e9a2b83dc4b2a8272 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
<refentry xml:base="" id="eglReleaseTexImage">
<holder>The Khronos Group Inc.</holder>
Releases a color buffer that is being used as a texture
<title>C Specification</title>
<funcdef>EGLBoolean <function>eglReleaseTexImage</function></funcdef>
<paramdef>EGLDisplay <parameter>display</parameter></paramdef>
<paramdef>EGLSurface <parameter>surface</parameter></paramdef>
<paramdef>EGLint <parameter>buffer</parameter></paramdef>
<refsect1 id="parameters"><title>Parameters</title>
<listitem><para>Specifies the EGL display connection.</para></listitem>
Specifies the EGL surface.
<listitem><para>Specifies the texture image data.</para></listitem>
<refsect1 id="description"><title>Description</title>
The specified color buffer is released back to the surface. The surface is made
available for reading and writing when it no longer has any color buffers bound as
<refsect1 id="notes"><title>Notes</title>
If the specified color buffer is no longer bound to a texture (e.g., because the
texture object was deleted) then eglReleaseTexImage has no effect. No error is
The contents of the color buffer are undefined when it is first released. In particular,
there is no guarantee that the texture image is still present. However, the contents of
other color buffers are unaffected by this call. Also, the contents of the depth and stencil buffers
are not affected by <citerefentry><refentrytitle>eglBindTexImage</refentrytitle></citerefentry>
and <function>eglReleaseTexImage</function>.
After a color buffer is released from a texture (either explicitly by calling
<function>eglReleaseTexImage</function> or implicitly by calling a routine such as
all texture images that were defined by the color buffer become <constant>NULL</constant>
(it is as if <citerefentry><refentrytitle>glTexImage</refentrytitle></citerefentry> was called with an image of zero width).
<refsect1 id="errors"><title>Errors</title>
<constant>EGL_BAD_MATCH</constant> is generated if the
surface attribute <constant>EGL_TEXTURE_FORMAT</constant> is
set to <constant>EGL_NO_TEXTURE</constant>.
<constant>EGL_BAD_MATCH</constant> is generated if
<parameter>buffer</parameter> is not a valid buffer
(currently only <constant>EGL_BACK_BUFFER</constant> may be
<constant>EGL_BAD_SURFACE</constant> is generated if
<parameter>surface</parameter> is not an EGL surface, or is
not a bound pbuffer surface.
<refsect1 id="seealso"><title>See Also</title>
<refsect3 id="Copyright"><title></title>
<!-- Content included from -->
<imagedata fileref="KhronosLogo.jpg" format="jpg" />
<para />